woocommerce-paypal-payments/modules/ppcp-blocks/resources/js/advanced-card-checkout-block.js
2024-05-20 18:46:44 +02:00

13 lines
452 B
JavaScript

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