2024-08-21 13:04:16 +02:00
|
|
|
import { registerPaymentMethod } from '@woocommerce/blocks-registry';
|
2024-08-21 15:47:23 +02:00
|
|
|
import { APM } from './apm-block';
|
2024-08-21 13:04:16 +02:00
|
|
|
|
2024-08-21 14:34:55 +02:00
|
|
|
const config = wc.wcSettings.getSetting( 'ppcp-ideal_data' );
|
2024-08-21 13:04:16 +02:00
|
|
|
|
|
|
|
registerPaymentMethod( {
|
|
|
|
name: config.id,
|
|
|
|
label: <div dangerouslySetInnerHTML={ { __html: config.title } } />,
|
2024-08-21 15:47:23 +02:00
|
|
|
content: <APM config={ config } />,
|
2024-08-21 13:04:16 +02:00
|
|
|
edit: <div></div>,
|
|
|
|
ariaLabel: config.title,
|
|
|
|
canMakePayment: () => {
|
|
|
|
return true;
|
|
|
|
},
|
|
|
|
supports: {
|
|
|
|
features: config.supports,
|
|
|
|
},
|
|
|
|
} );
|