woocommerce-paypal-payments/modules/ppcp-local-alternative-payment-methods/resources/js/ideal-payment-method.js
2024-08-21 14:34:55 +02:00

18 lines
466 B
JavaScript

import { registerPaymentMethod } from '@woocommerce/blocks-registry';
import { IDeal } from './ideal-block';
const config = wc.wcSettings.getSetting( 'ppcp-ideal_data' );
registerPaymentMethod( {
name: config.id,
label: <div dangerouslySetInnerHTML={ { __html: config.title } } />,
content: <IDeal config={ config } />,
edit: <div></div>,
ariaLabel: config.title,
canMakePayment: () => {
return true;
},
supports: {
features: config.supports,
},
} );