PaymentForm
Need storefront configuration?
Use the public API origin, merchant slug, and location ID. Storefront components
never receive a Crave API key; register each exact browser origin before making
requests.
Preview
Behavior
- Branches only on
paymentSession.provider; browser state cannot choose or switch the processor. - Square supports card, Square gift-card partial authorization, authenticated stored cards, optional card saving, and wallet tokens when an eligible Square wallet method supplies the source token.
- Stripe Elements remains available only for non-Square locations.
- The parent checkout flow owns customer validation, confirmation, errors, idempotent retries, and final redirect.
- Raw card and gift-card data stays in provider-hosted fields and is never accepted or logged by Crave application code.