mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Add bancontact block checkout boilerplate
This commit is contained in:
parent
633ae1aed0
commit
60885b2ad9
10 changed files with 2472 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
import { registerPaymentMethod } from '@woocommerce/blocks-registry';
|
||||
|
||||
const config = wc.wcSettings.getSetting( 'ppcp-bancontact_data' );
|
||||
console.log( config );
|
||||
|
||||
registerPaymentMethod( {
|
||||
name: config.id,
|
||||
label: <div dangerouslySetInnerHTML={ { __html: config.title } } />,
|
||||
content: <div>Hi there!</div>,
|
||||
edit: <div></div>,
|
||||
ariaLabel: config.title,
|
||||
canMakePayment: () => {
|
||||
return true;
|
||||
},
|
||||
supports: {
|
||||
features: config.supports,
|
||||
},
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue