woocommerce-paypal-payments/modules/ppcp-local-alternative-payment-methods/resources/js/multibanco-payment-method.js
2024-08-22 17:39:52 +02:00

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,
},
} );