mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Add boilerplate for advanced card block integration
This commit is contained in:
parent
ffe3a0b958
commit
7c90031c4f
5 changed files with 103 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
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},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue