Automattic\WooCommerce\Blocks\Payments
Api::register_payment_method_integrations()
Register payment method integrations bundled with blocks.
Method of the class: Api{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Api = new Api(); $Api->register_payment_method_integrations( $payment_method_registry );
- $payment_method_registry(PaymentMethodRegistry) (required)
- Payment method registry instance.
Api::register_payment_method_integrations() Api::register payment method integrations code WC 9.8.2
public function register_payment_method_integrations( PaymentMethodRegistry $payment_method_registry ) { $payment_method_registry->register( Package::container()->get( Cheque::class ) ); $payment_method_registry->register( Package::container()->get( PayPal::class ) ); $payment_method_registry->register( Package::container()->get( BankTransfer::class ) ); $payment_method_registry->register( Package::container()->get( CashOnDelivery::class ) ); }