mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Add card fields component (WIP)
This commit is contained in:
parent
7c90031c4f
commit
061d30f575
4 changed files with 73 additions and 7 deletions
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue