SolvaPayProviderProps
SolvaPay SDK / react/src / SolvaPayProviderProps
Interface: SolvaPayProviderProps
Defined in: packages/react/src/types/index.ts:162
Properties
checkPurchase()?
optionalcheckPurchase: () =>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?
optionalconfig: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()?
optionalcreatePayment: (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()?
optionalprocessPayment: (params) =>Promise<ProcessPaymentResult>
Defined in: packages/react/src/types/index.ts:175
Parameters
params
paymentIntentId
string
planRef?
string
productRef
string
Returns
Promise<ProcessPaymentResult>