PayPal Checkout

Smart Payment Buttons Overview

PayPal Checkout with Smart Payment Buttons gives your buyers a simplified and secure checkout experience. PayPal intelligently presents the most relevant payment types to your shoppers, automatically, making it easier for them to complete their purchase using methods like Pay with Venmo, PayPal Credit, Credit Card payments, and other payment types.

Note: This PayPal Checkout integration uses the PayPal JavaScript SDK. Customers who integrated with checkout.js before February 2019 can access reference and support material in the archived Checkout integration guide. Read how you can migrate from checkout.js to the PayPal JavaScript SDK.

Try the buttons

Click the Smart Payment Buttons to experience a complete PayPal Checkout flow:

Add the buttons to your website

Now that you've seen the Smart Payment Buttons in action, add the button code to your website. Copy and paste this code into an HTML page and view it in your browser. You'll use the code to start a basic integration.

<script src="https://www.paypal.com/sdk/js?client-id=sb"></script>
<script>paypal.Buttons().render('body');</script>

Tip: Create a sandbox account to log into PayPal after clicking the Smart Payment Buttons.

How the buttons work

Before you begin, here's a big-picture view of how a PayPal Checkout with Smart Payment Buttons integration works:

How the PayPal Checkout integration works

  1. You add the PayPal Smart Payment Buttons to your web page.
  2. Your buyer clicks the button.
  3. The button calls PayPal Orders API to set up a transaction.
  4. The button launches the PayPal Checkout experience.
  5. The buyer approves the payment.
  6. The button calls PayPal Orders API to finalize the transaction.
  7. You show a confirmation to your buyer.

Next

Add a Smart Payment Buttons integration to your website.

Feedback