SolvaPayProviderProps
SolvaPay SDK / react/src / SolvaPayProviderProps
Interface: SolvaPayProviderProps
Defined in: packages/react/src/types/index.ts:149
Properties
checkSubscription()?
optionalcheckSubscription: () =>Promise<CustomerSubscriptionData>
Defined in: packages/react/src/types/index.ts:161
Returns
Promise<CustomerSubscriptionData>
children
children:
ReactNode
Defined in: packages/react/src/types/index.ts:168
config?
optionalconfig:SolvaPayConfig
Defined in: packages/react/src/types/index.ts:154
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:160
Custom API functions (override config defaults) Use only if you need custom logic beyond standard API routes
Parameters
params
agentRef?
string
planRef
string
Returns
Promise<PaymentIntentResult>
processPayment()?
optionalprocessPayment: (params) =>Promise<ProcessPaymentResult>
Defined in: packages/react/src/types/index.ts:162
Parameters
params
agentRef
string
paymentIntentId
string
planRef?
string
Returns
Promise<ProcessPaymentResult>