react-code-dataset / wp-calypso /client /jetpack-cloud /sections /partner-portal /payment-methods /get-stripe-configuration.ts
| import wp from 'calypso/lib/wp'; | |
| import type { GetStripeConfigurationArgs } from '@automattic/calypso-stripe'; | |
| export async function getStripeConfiguration( | |
| requestArgs: GetStripeConfigurationArgs & { needs_intent?: boolean } | |
| ) { | |
| return await wp.req.get( | |
| { | |
| apiNamespace: 'wpcom/v2', | |
| path: '/jetpack/stripe/configuration', | |
| }, | |
| requestArgs | |
| ); | |
| } | |