Add bancontact block checkout boilerplate

This commit is contained in:
Emili Castells Guasch 2024-08-09 18:27:00 +02:00
parent 633ae1aed0
commit 60885b2ad9
10 changed files with 2472 additions and 0 deletions

View file

@ -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,
},
} );