mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
13 lines
454 B
JavaScript
13 lines
454 B
JavaScript
import { registerPaymentMethod } from '@woocommerce/blocks-registry';
|
|
import {CardFields} from "./Components/CardFields";
|
|
|
|
const config = wc.wcSettings.getSetting('ppcp-credit-card-gateway_data');
|
|
|
|
registerPaymentMethod({
|
|
name: config.id,
|
|
label: <div dangerouslySetInnerHTML={{__html: config.title}}/>,
|
|
content: <CardFields config={config}/>,
|
|
edit: <p>edit...</p>,
|
|
ariaLabel: config.title,
|
|
canMakePayment: () => {return true},
|
|
})
|