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)

          References

          Top Articles
          Collier Urgent Care Park Shore
          Walmart Borax Aisle
          Nullreferenceexception 7 Days To Die
          Star Wars Mongol Heleer
          Forozdz
          Cooking Chutney | Ask Nigella.com
          Paris 2024: Kellie Harrington has 'no more mountains' as double Olympic champion retires
          COLA Takes Effect With Sept. 30 Benefit Payment
          Phone Number For Walmart Automotive Department
          How Much Is 10000 Nickels
          Craigslist Kennewick Pasco Richland
          Flights to Miami (MIA)
          What's Wrong with the Chevrolet Tahoe?
          Minn Kota Paws
          Slushy Beer Strain
          Everything You Need to Know About Holly by Stephen King
          6001 Canadian Ct Orlando Fl
          Animal Eye Clinic Huntersville Nc
          Non Sequitur
          Craigslist Farm And Garden Tallahassee Florida
          Craigslist Free Stuff Santa Cruz
          Spider-Man: Across The Spider-Verse Showtimes Near Marcus Bay Park Cinema
          Amazing deals for Abercrombie & Fitch Co. on Goodshop!
          Marine Forecast Sandy Hook To Manasquan Inlet
          Empire Visionworks The Crossings Clifton Park Photos
          The Many Faces of the Craigslist Killer
          Hannaford Weekly Flyer Manchester Nh
          Speedstepper
          Gillette Craigslist
          Darktide Terrifying Barrage
          ATM, 3813 N Woodlawn Blvd, Wichita, KS 67220, US - MapQuest
          Ff14 Laws Order
          Napa Autocare Locator
          Gina's Pizza Port Charlotte Fl
          Teenbeautyfitness
          Tamilrockers Movies 2023 Download
          Pillowtalk Podcast Interview Turns Into 3Some
          拿到绿卡后一亩三分地
          The Bold And The Beautiful Recaps Soap Central
          Wattengel Funeral Home Meadow Drive
          Jail View Sumter
          Henry Ford’s Greatest Achievements and Inventions - World History Edu
          'Guys, you're just gonna have to deal with it': Ja Rule on women dominating modern rap, the lyrics he's 'ashamed' of, Ashanti, and his long-awaited comeback
          Autum Catholic Store
          Wilson Tire And Auto Service Gambrills Photos
          Unlock The Secrets Of "Skip The Game" Greensboro North Carolina
          Ucla Basketball Bruinzone
          A Snowy Day In Oakland Showtimes Near Maya Pittsburg Cinemas
          Sams La Habra Gas Price
          BYU Football: Instant Observations From Blowout Win At Wyoming
          Jovan Pulitzer Telegram
          Asisn Massage Near Me
          Latest Posts
          Article information

          Author: Arielle Torp

          Last Updated:

          Views: 6266

          Rating: 4 / 5 (41 voted)

          Reviews: 80% of readers found this page helpful

          Author information

          Name: Arielle Torp

          Birthday: 1997-09-20

          Address: 87313 Erdman Vista, North Dustinborough, WA 37563

          Phone: +97216742823598

          Job: Central Technology Officer

          Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

          Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.