stripe
Register all Stripe intents
Convenience function that creates the Stripe charge method intent.
Usage
import { } from '@stripe/stripe-js'
import { , } from 'mppx/client'
const = (await ('pk_test_...'))!
.({
: [
({
: ,
: async () => {
const = await ('/api/create-spt', {
: 'POST',
: { 'Content-Type': 'application/json' },
: .(),
})
return (await .()).spt
},
: 'pm_card_visa',
}),
],
})Return type
import type { Method } from 'mppx'
type ReturnType = Method.ClientParameters
See stripe.charge for the full parameter list.