Skip to main content

SolvaPayProviderProps

SolvaPay SDK


SolvaPay SDK / react/src / SolvaPayProviderProps

Interface: SolvaPayProviderProps

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

Properties

checkSubscription()?

optional checkSubscription: () => 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?

optional config: 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()?

optional createPayment: (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()?

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

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

Parameters

params
agentRef

string

paymentIntentId

string

planRef?

string

Returns

Promise<ProcessPaymentResult>