Upgrade your Checkout integration (2024)

Online/

Checkout/

Advanced/

Upgrade

Upgrade your Checkout integration

DocsCurrent

StandardAdvancedBeta

Last updated: Aug 15th, 12:31am

If you have an Express Checkout or Standard Checkout integration, PayPal recommends upgrading to Advanced Checkout using theJavaScript SDK.

The JavaScript SDK has the following benefits:

  • Dynamically renders payment buttons instead of using static images.
  • Launches payment flow in a pop-up window instead of redirecting to a new page.
  • Supports greater control over payment button styles.

Visit the Eligibility page to learn more about the countries, currencies, and card brands that Advanced Checkout supports.

Getting started

Integrate Advanced Checkout to present custom credit and debit card fields to your payers so they can pay with PayPal, debit and credit cards, Pay Later options, Venmo, and alternative payment methods, using your site's branding.

1. Review current integration

Your current integration determines whether you need to gather information to integrate with Advanced Checkout.SelectStandard CheckoutorExpress Checkout:

Standard Checkout uses the same APIs as Advanced Checkout. You don’t need to change your API calls or collect parameter information about your current Standard Checkout integration when you upgrade to Advanced Checkout.

2. Set up your sandbox

Sign up for a developer account

You need a PayPal developer account to get sandbox credentials.

Get your credentials

Follow this onboarding document to get a client ID, client secret, access token, and sandbox account credentials:

  • Client ID: Authenticates your account with PayPal and identifies an app in your sandbox.

  • Client secret: Authorizes an app in your sandbox. Keep this secret safe and don't share it.

  • Access token: Authenticates your app when calling PayPal REST APIs.

Set up your sandbox account

This integration requires a sandbox business account with the Advanced Credit and Debit Card Payments capability. Your sandbox business account should automatically have this capability.

To confirm that Advanced Credit and Debit Card Payments are enabled for you, check your sandbox business account as follows:

  1. Log into the PayPal Developer Dashboard, toggle Sandbox, and go to Apps & Credentials.

  2. In REST API apps, select the name of your app.

  3. Go to Features > Accept payments.

  4. Select the Advanced Credit and Debit Card Payments checkbox and select Save Changes.

Note: If you created a sandbox business account through sandbox.paypal.com, and the Advanced Credit and Debit Card Payments status for the account is disabled, complete the sandbox onboarding steps.

Integrate Advanced PayPal Checkout

Before beginning your integration, you need to set up your development environment. See the precedingGetting started section for details.

1

Set up front end

Set up your front end for advanced Checkout. Select Standard Checkout or Express Checkout:

Set up your front end to use PayPal card fields and payment buttons in Advanced Checkout. Include components=buttons,card-fields in your JavaScript SDK <script> tag:

  • The card-fields component renders the card fields.
  • The buttons component renders the PayPal buttons.

Standard Checkout JavaScript SDK Script Tag

    1<script src="https://www.paypal.com/sdk/js?currency=USD&client-id=YOUR_SANDBOX_CLIENT_ID"></script>

    Update SDK Script Tag to Advanced Checkout JavaScript

      1<script src="https://www.paypal.com/sdk/js?currency=USD&client-id=YOUR_SANDBOX_CLIENT_ID&components=buttons,card-fields"></script>

      2

      Create and render card fields and payment buttons

      Set up your front end to use PayPal card fields and start accepting credit and debit card payments.SelectStandard CheckoutorExpress Checkout:

      Update your HTML code by replacing your Standard Checkout PayPal buttons code with the Advanced Checkout PayPal card fields and payment button code sample:

      Original Standard Checkout PayPal payment button, HTML

        1<div id="paypal-button-container"></div>

        2<script>

        3 paypal.Buttons({

        4 // Button configuration and event handlers

        5 }).render('#paypal-button-container');

        6</script>

        Advanced Checkout PayPal card fields and payment button, HTML

          1<div id="paypal-button-container"></div>

          2<div class="card-fields-container">

          3 <div id="card-fields" class="card-fields"></div>

          4 <button id="card-fields-submit">Submit</button>

          5</div>

          6<script>

          7 paypal.Buttons({

          8 // Button configuration and event handlers

          9 }).render('#paypal-button-container');

          10 paypal.CardFields({

          11 createOrder: function() {

          12 return fetch('/create-order', {

          13 method: 'post'

          14 }).then(function(res) {

          15 return res.json();

          16 }).then(function(orderData) {

          17 return orderData.id; // Use the order ID to create the order

          18 });

          19 }

          20 }).render('#card-fields'); // Render the card fields into #card-fields

          21 // Handle the submit button for card fields

          22 document.getElementById('card-fields-submit').addEventListener('click', function() {

          23 paypal.CardFields().submit().then(function(result) {

          24 alert('Payment authorized');

          25 }).catch(function(err) {

          26 console.error('Payment authorization failed:', err);

          27 alert('Payment authorization failed');

          28 });

          29 });

          30</script>

          Advanced Checkout card fields and payment buttons example

          For a more detailed example, see Integrate PayPal buttons and Card Fields.

          3

          Set up server-side processing

          You may need to set up server-side processing for yourintegration.SelectStandard CheckoutorExpress Checkout:

          You don't need to set up server-side processing when you upgrade fromStandard Checkout to Advanced Checkout.

          4

          Fine-tune your checkout experience

          See Customize your buyers' experience to configure the details of your integration.

          5

          Test integration

          Before going live, test your integration in the sandbox environment. Learn more about card testing, simulating successful payments using test card numbers and generating card error scenarios using rejection triggers.

          Note: Use the credit card generator to generate test credit cards for sandbox testing.

          Test the following use cases before going live:

          PayPal Payment

          Test a purchase as a payer:

          1. Select the PayPal button on your checkout page.

          2. Log in using one of your personal sandbox accounts. This ensures the payments will be sent to the correct account. Make sure that you use the sandbox business account that corresponds to the REST app you are using.

          3. Note the purchase amount in the PayPal checkout window.

          4. Approve the purchase with the Pay Now button. The PayPal window closes and redirects you to your page, indicating that the transaction was completed.

          Confirm the money reached the business account:

          1. Log in to the PayPal sandbox using the sandbox business account that received the payment. Remember that the SDK source now uses a sandbox client ID from one of your REST apps, and not the default test ID.

          2. In Recent Activity, confirm that the sandbox business account received the money, subtracting any fees.

          3. Log out of the account.

          Card payment

          1. Go to the checkout page for your integration.

          2. Generate a test card using the credit card generator.

          3. Enter the card details in the hosted field, including the name on the card, billing address, and 2-character country code. Then, submit the order.

          4. Confirm that the order was processed.

          5. Log in to your merchant sandbox account and navigate to the activity page to ensure the payment amount shows up in the account.

          6

          Go live

          Follow this checklist to take your application live:

          1. Log into the PayPal Developer Dashboard with your PayPal business account.

          2. Obtain your live credentials.

          3. Include the new credentials in your integration and Update your PayPal endpoint.

          See Move your app to production for more details.

          ReferencePayPal.comPrivacyCookiesSupportLegalContact

          Upgrade your Checkout integration (2024)
          Top Articles
          Top 25 Best Thrift Stores in Texas
          23 Thrift Stores In TEXAS (Quirky, Vintage, & Distinctive)
          Funny Roblox Id Codes 2023
          Golden Abyss - Chapter 5 - Lunar_Angel
          Www.paystubportal.com/7-11 Login
          Joi Databas
          DPhil Research - List of thesis titles
          Shs Games 1V1 Lol
          Evil Dead Rise Showtimes Near Massena Movieplex
          Steamy Afternoon With Handsome Fernando
          Which aspects are important in sales |#1 Prospection
          Detroit Lions 50 50
          18443168434
          Newgate Honda
          Zürich Stadion Letzigrund detailed interactive seating plan with seat & row numbers | Sitzplan Saalplan with Sitzplatz & Reihen Nummerierung
          Grace Caroline Deepfake
          978-0137606801
          Nwi Arrests Lake County
          Justified Official Series Trailer
          London Ups Store
          Committees Of Correspondence | Encyclopedia.com
          Pizza Hut In Dinuba
          Jinx Chapter 24: Release Date, Spoilers & Where To Read - OtakuKart
          How Much You Should Be Tipping For Beauty Services - American Beauty Institute
          Free Online Games on CrazyGames | Play Now!
          Sizewise Stat Login
          VERHUURD: Barentszstraat 12 in 'S-Gravenhage 2518 XG: Woonhuis.
          Jet Ski Rental Conneaut Lake Pa
          Unforeseen Drama: The Tower of Terror’s Mysterious Closure at Walt Disney World
          Ups Print Store Near Me
          C&T Wok Menu - Morrisville, NC Restaurant
          How Taraswrld Leaks Exposed the Dark Side of TikTok Fame
          University Of Michigan Paging System
          Dashboard Unt
          10 Best Places to Go and Things to Know for a Trip to the Hickory M...
          Black Lion Backpack And Glider Voucher
          Gopher Carts Pensacola Beach
          Duke University Transcript Request
          Lincoln Financial Field, section 110, row 4, home of Philadelphia Eagles, Temple Owls, page 1
          Jambus - Definition, Beispiele, Merkmale, Wirkung
          Ark Unlock All Skins Command
          Craigslist Red Wing Mn
          D3 Boards
          Jail View Sumter
          Nancy Pazelt Obituary
          Birmingham City Schools Clever Login
          Thotsbook Com
          Funkin' on the Heights
          Vci Classified Paducah
          Www Pig11 Net
          Ty Glass Sentenced
          Latest Posts
          Article information

          Author: Melvina Ondricka

          Last Updated:

          Views: 5666

          Rating: 4.8 / 5 (68 voted)

          Reviews: 83% of readers found this page helpful

          Author information

          Name: Melvina Ondricka

          Birthday: 2000-12-23

          Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

          Phone: +636383657021

          Job: Dynamic Government Specialist

          Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

          Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.