Add card fields component (WIP)

This commit is contained in:
Emili Castells Guasch 2024-04-17 16:20:42 +02:00
parent 7c90031c4f
commit 061d30f575
4 changed files with 73 additions and 7 deletions

View file

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