woocommerce-paypal-payments/modules/ppcp-blocks/resources/js/advanced-card-checkout-block.js
2024-04-16 12:05:06 +02:00

12 lines
387 B
JavaScript

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