Skip to main content

processPayment

SolvaPay SDK


SolvaPay SDK / next/src / processPayment

Function: processPayment()

processPayment(request, body, options): Promise<ProcessPaymentResult | NextResponse<unknown>>

Defined in: packages/next/src/helpers/payment.ts:74

Process payment - Next.js wrapper

Parameters

request

Request

Next.js request object

body

Payment processing parameters

agentRef

string

paymentIntentId

string

planRef?

string

options

Configuration options

solvaPay?

SolvaPay

Returns

Promise<ProcessPaymentResult | NextResponse<unknown>>

Process payment result or NextResponse error