mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Add trustly gateway
This commit is contained in:
parent
98536361af
commit
dd990ca44a
11 changed files with 405 additions and 19 deletions
|
@ -0,0 +1,18 @@
|
|||
import { registerPaymentMethod } from '@woocommerce/blocks-registry';
|
||||
import { APM } from './apm-block';
|
||||
|
||||
const config = wc.wcSettings.getSetting( 'ppcp-trustly_data' );
|
||||
|
||||
registerPaymentMethod( {
|
||||
name: config.id,
|
||||
label: <div dangerouslySetInnerHTML={ { __html: config.title } } />,
|
||||
content: <APM config={ config } />,
|
||||
edit: <div></div>,
|
||||
ariaLabel: config.title,
|
||||
canMakePayment: () => {
|
||||
return true;
|
||||
},
|
||||
supports: {
|
||||
features: config.supports,
|
||||
},
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue