Watch: Let customers pay with PayPal | Vovy

Watch Vovy do it on a Mac: "Add a PayPal button to my checkout". Vovy creates your PayPal app credentials, adds PayPal checkout buttons to your site, and tests a payment with a sandbox buyer account.

"Add a PayPal button to my checkout"

Vovy creates your PayPal app credentials, adds PayPal checkout buttons to your site, and tests a payment with a sandbox buyer account.

What happens in the video

  1. Create a PayPal app: Vovy opens Apps and Credentials in the PayPal Developer Dashboard, creates an app, and copies the sandbox Client ID and secret.
  2. Add the PayPal buttons: In Cursor it adds PayPal's JavaScript SDK with your Client ID and renders the PayPal button next to your existing checkout.
  3. Create and capture orders on the server: Vovy writes server functions that create the order and capture the payment with your secret, so the price can't be changed in the browser.
  4. Pay with a sandbox buyer: It pays using a PayPal sandbox buyer account and shows the completed order in the sandbox dashboard.
  5. Switch to live credentials: After testing, Vovy swaps in live credentials in production and runs a small real payment.
Read the step-by-step guide