Square Web Payments SDK in React: the wrapper first, then the Card in a 3D checkout

If you just want to take cards with Square in React, use react-square-web-payments-sdk: a PaymentForm and a CreditCard component, free, with Square's own card form and pay button. This page starts there, then shows the same Card with @square/web-sdk directly in the Next.js App Router, with a typed server action that charges the token. Last, it puts the Card inside an animated 3D card that shows the brand and flips for the CVV, driven by Square's own events.

Credit Card Checkout V1, preview

By buying you agree to the Terms.

Ready forCursorv0Lovableshadcn CLI

Full product pageReact · Tailwind · TypeScript