Skip to main content

SolvaPayProviderProps

SolvaPay SDK v1.0.0


SolvaPay SDK / react/src / SolvaPayProviderProps

Interface: SolvaPayProviderProps

Defined in: packages/react/src/types/index.ts:162

Properties

checkPurchase()?

optional checkPurchase: () => Promise<CustomerPurchaseData>

Defined in: packages/react/src/types/index.ts:174

Returns

Promise<CustomerPurchaseData>


children

children: ReactNode

Defined in: packages/react/src/types/index.ts:181


config?

optional config: SolvaPayConfig

Defined in: packages/react/src/types/index.ts:167

Configuration object with sensible defaults If not provided, uses standard Next.js API routes


createPayment()?

optional createPayment: (params) => Promise<PaymentIntentResult>

Defined in: packages/react/src/types/index.ts:173

Custom API functions (override config defaults) Use only if you need custom logic beyond standard API routes

Parameters

params
planRef

string

productRef?

string

Returns

Promise<PaymentIntentResult>


processPayment()?

optional processPayment: (params) => Promise<ProcessPaymentResult>

Defined in: packages/react/src/types/index.ts:175

Parameters

params
paymentIntentId

string

planRef?

string

productRef

string

Returns

Promise<ProcessPaymentResult>