PaymentForm
Renders payment input fields using the merchant’s configured payment provider (Square or Stripe). Handles tokenization and payment submission.Preview
View in StorybookImport
Usage
Props
The payment provider configured for this merchant.
The total amount to charge in cents.
Callback fired with the payment token after successful tokenization.
Callback fired when payment processing fails.
Behavior
- Loads the appropriate payment provider SDK (Square Web Payments or Stripe Elements)
- Secure iframe-based card input fields
- Supports Apple Pay and Google Pay when available
- Displays inline validation errors
- Shows loading state during payment processing