PaymentFormProps
SolvaPay SDK / react/src / PaymentFormProps
Interface: PaymentFormProps
Defined in: packages/react/src/types/index.ts:321
Payment form props - simplified and minimal
Properties
agentRef?
optionalagentRef:string
Defined in: packages/react/src/types/index.ts:330
Agent reference. Required for processing payment after confirmation.
buttonClassName?
optionalbuttonClassName:string
Defined in: packages/react/src/types/index.ts:354
Optional className for the submit button
className?
optionalclassName:string
Defined in: packages/react/src/types/index.ts:350
Optional className for the form container
onError()?
optionalonError: (error) =>void
Defined in: packages/react/src/types/index.ts:338
Callback when payment fails
Parameters
error
Error
Returns
void
onSuccess()?
optionalonSuccess: (paymentIntent) =>void
Defined in: packages/react/src/types/index.ts:334
Callback when payment succeeds
Parameters
paymentIntent
PaymentIntent
Returns
void
planRef
planRef:
string
Defined in: packages/react/src/types/index.ts:326
Plan reference to checkout. PaymentForm handles the entire checkout flow internally including Stripe initialization and payment intent creation.
returnUrl?
optionalreturnUrl:string
Defined in: packages/react/src/types/index.ts:342
Return URL after payment completion. Defaults to current page URL if not provided.
submitButtonText?
optionalsubmitButtonText:string
Defined in: packages/react/src/types/index.ts:346
Text for the submit button. Defaults to "Pay Now"