mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
18 lines
465 B
JavaScript
18 lines
465 B
JavaScript
import { registerPaymentMethod } from '@woocommerce/blocks-registry';
|
|
import { APM } from './apm-block';
|
|
|
|
const config = wc.wcSettings.getSetting( 'ppcp-multibanco_data' );
|
|
|
|
registerPaymentMethod( {
|
|
name: config.id,
|
|
label: <div dangerouslySetInnerHTML={ { __html: config.title } } />,
|
|
content: <APM config={ config } />,
|
|
edit: <div></div>,
|
|
ariaLabel: config.title,
|
|
canMakePayment: () => {
|
|
return true;
|
|
},
|
|
supports: {
|
|
features: config.supports,
|
|
},
|
|
} );
|