Skip to main content

SolvaPayContextValue

SolvaPay SDK


SolvaPay SDK / react/src / SolvaPayContextValue

Interface: SolvaPayContextValue

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

Properties

createPayment()

createPayment: (params) => Promise<PaymentIntentResult>

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

Parameters

params
agentRef?

string

planRef

string

Returns

Promise<PaymentIntentResult>


customerRef?

optional customerRef: string

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


processPayment()?

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

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

Parameters

params
agentRef

string

paymentIntentId

string

planRef?

string

Returns

Promise<ProcessPaymentResult>


refetchSubscription()

refetchSubscription: () => Promise<void>

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

Returns

Promise<void>


subscription

subscription: SubscriptionStatus

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


updateCustomerRef()?

optional updateCustomerRef: (newCustomerRef) => void

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

Parameters

newCustomerRef

string

Returns

void