Automattic\WooCommerce\StoreApi\Payments
PaymentContext::set_payment_method()
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() PaymentContext::set payment method code WC 9.3.3
public function set_payment_method( $payment_method ) { $this->payment_method = (string) $payment_method; }