PayPal checkout in Next.js: the PayPal button and a 3D card form with react-paypal-js

The usual PayPal setup in a Next.js app: a Server Action creates the order, PayPal's button opens the PayPal window, and a second Server Action captures the order once the buyer approves. Nothing is paid until you capture. This page does it with @paypal/react-paypal-js 10 and PayPal's v6 SDK, then puts PayPal's card fields inside an animated 3D card under the button, so buyers without a PayPal account pay on the same page.

Credit Card Checkout V1, preview

By buying you agree to the Terms.

Ready forCursorv0Lovableshadcn CLI

Full product pageReact · Tailwind · TypeScript