woocommerce/plugins/woocommerce-blocks/assets/js/payment-method-extensions/index.js

17 lines
434 B
JavaScript

/**
* External dependencies
*/
import {
registerExpressPaymentMethod,
registerPaymentMethod,
} from '@woocommerce/blocks-registry';
/**
* Internal dependencies
*/
import { ApplePayConfig } from './express-payment';
import { stripeCcPaymentMethod } from './payment-methods';
registerExpressPaymentMethod( ( Config ) => new Config( ApplePayConfig ) );
registerPaymentMethod( ( Config ) => new Config( stripeCcPaymentMethod ) );