createPaymentIntent
SolvaPay SDK / next/src / createPaymentIntent
Function: createPaymentIntent()
createPaymentIntent(
request,body,options):Promise<NextResponse<unknown> | {accountId?:string;clientSecret:string;customerRef:string;id:string;publishableKey:string; }>
Defined in: packages/next/src/helpers/payment.ts:26
Create payment intent - Next.js wrapper
Parameters
request
Request
Next.js request object
body
Payment intent parameters
agentRef
string
planRef
string
options
Configuration options
includeEmail?
boolean
includeName?
boolean
solvaPay?
Returns
Promise<NextResponse<unknown> | { accountId?: string; clientSecret: string; customerRef: string; id: string; publishableKey: string; }>
Payment intent response or NextResponse error