Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
payment-method-extensions
/
payment-methods
/
stripe
:
index.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { registerPaymentMethod, registerExpressPaymentMethod, } from '@woocommerce/blocks-registry'; /** * Internal dependencies */ import stripeCcPaymentMethod from './credit-card'; import paymentRequestPaymentMethod from './payment-request'; import { getStripeServerData } from './stripe-utils'; // Register Stripe Credit Card. registerPaymentMethod( stripeCcPaymentMethod ); // Register Stripe Payment Request (Apple/Chrome Pay) if enabled. if ( getStripeServerData().allowPaymentRequest ) { registerExpressPaymentMethod( paymentRequestPaymentMethod ); }