Automattic\WooCommerce\StoreApi\Payments

PaymentContext::set_payment_method()publicWC 1.0

Set the chosen payment method ID context.

Method of the class: PaymentContext{}

No Hooks.

Return

null. Nothing (null).

Usage

$PaymentContext = new PaymentContext();
$PaymentContext->set_payment_method( $payment_method );
$payment_method(string) (required)
Payment method ID.

PaymentContext::set_payment_method() code WC 9.3.3

public function set_payment_method( $payment_method ) {
	$this->payment_method = (string) $payment_method;
}