import { registerPaymentMethod } from '@woocommerce/blocks-registry'; import { CardFields } from './Components/card-fields'; const config = wc.wcSettings.getSetting( 'ppcp-credit-card-gateway_data' ); registerPaymentMethod( { name: config.id, label:
, content: , edit:
, ariaLabel: config.title, canMakePayment: () => { return true; }, supports: { showSavedCards: true, features: config.supports, }, } );