SolvaPayContextValue
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?
optionalcustomerRef:string
Defined in: packages/react/src/types/index.ts:145
processPayment()?
optionalprocessPayment: (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()?
optionalupdateCustomerRef: (newCustomerRef) =>void
Defined in: packages/react/src/types/index.ts:146
Parameters
newCustomerRef
string
Returns
void