Skip to main content

createPaymentIntent

SolvaPay SDK v1.0.0


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:15

Parameters

request

Request

body

planRef

string

productRef

string

options

includeEmail?

boolean

includeName?

boolean

solvaPay?

SolvaPay

Returns

Promise<NextResponse<unknown> | { accountId?: string; clientSecret: string; customerRef: string; id: string; publishableKey: string; }>