woocommerce-paypal-payments/modules/ppcp-local-alternative-payment-methods/resources/js/eps-payment-method.js
Emili Castells Guasch 83cb9d607a Add p24 gateway
2024-08-21 15:47:23 +02:00

18 lines
458 B
JavaScript

import { registerPaymentMethod } from '@woocommerce/blocks-registry';
import { APM } from './apm-block';
const config = wc.wcSettings.getSetting( 'ppcp-eps_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,
},
} );