Set Paypal As A Secondary Checkout For Your Store



PayPal recognizes that not every business is building its digital commerce experience in-house. If you are one of those businesses, PayPal has good news for you. More than 300 eCommerce solution providers already offer a PayPal integrated option out of the box. Following is a snapshot of the most popular eCommerce and ERP platforms that offer PayPal integration capabilities.

I think before going deeper into how PayPal Standard adds value to the store, it is a good idea to go over some of the popular PayPal extensions. Note that the following list reflects my opinion. If I have missed out on your favorite extension, do mention it in the comments.

For a more comprehensive list of 3rd party solution platforms, see the Solution Providers Directory.

Note: To use a third-party shopping cart, you need to set up third-party permissions for the provider as described in Granting a third party permissions. For additional instructions, refer to the documentation from the shopping cart provider. No shopping cart specific instructions are available on this site. For transaction errors, see API error codes.

Set Paypal As A Secondary Checkout For Your Store Online

Steps for Creating a Custom Checkout Page Style for PayPal. Note: The steps may vary slightly from your PayPal dashboard (based on your country and language). Login to your PayPal account. Under My Account, click Profile. In the My Selling Tools section (left side), click on Update next to Custom payment pages. Click the Add button. With PayPal Checkout, a customer logs in to their PayPal account from a product detail or shopping cart page and confirms their payment details in a secure pop-up window on your site. It has the advantage of letting your customers check out without needing to complete forms on your site, as the customer’s contact and shipping details.

Online stores

Whether you are updating your existing shopping cart to set-up your PayPal integration or you are comparing different platforms for a new online store, the following ecommerce providers offer a variety of out-of-the-box or custom cart configurations. Online stores are further categorized based on the level of customization offered in the solution:

Marketplaces

Marketplace solution providers allow you to set up a personal storefront within a sellers' conglomerate or specialty platform.

Websites

Website solution providers specialize in full-scale design, development, and systems integration services for your eCommerce website. Explore PayPal's full websites provider directory.

In-person payments

In-Person solution providers help you integrate your POS system to accept mobile payments using PayPal for both remote orders that pick-up in store, or full in-store transactions at the point of sale. Explore PayPal's full in-person provider directory.

Order forms

Does your business rely on more complex ordering capabilities? PayPal works with several solution providers that offer form design, management, logistics, and payments to help you streamline your supply chain. Explore PayPal's full order forms provider directory.

Accounting

Accounting solution providers offer tools for integrating PayPal into your financial management strategy, from invoicing, to recurring subscription billing, to payroll. Explore PayPal's full accounting provider directory.

Fundraising

Fundraising solution providers specialize in providing support for the unique needs of non-profits and clubs, including membership management, event registration, crowd-sourcing, and fundraising. Explore PayPal's fundraising provider directory.

Entertainment and Promotions

Ticket sales and event booking require a different kind of website than a traditional online store. PayPal works with a variety of solution providers that understand the unique challenges of the entertainment, travel, and sports sales and marketing platforms. Explore PayPal's entertainment and promotions provider directory.

Important: PayPal supports these Checkout integrations:

  • Smart Payment Buttons, which use the PayPal JavaScript SDK. Valid from February 2019 for new integrations.
  • Checkout with checkout.js. Valid before February 2019. Customers who use checkout.js can access reference and support material in this Checkout guide. However, PayPal does not update checkout.js with new features and enhancements.

A client integration is the quickest way to integrate PayPal Checkout. It doesn't require a web server to set up and execute payments. Instead, the PayPal Checkout button sets up and executes payments directly from your browser.

For advanced payment options, such as authorization and capture, recurring billing, and issuing refunds, complete the steps in this guide and then see Implement a Server Integration.

How a client integration works

A client integration works like this:

  1. Your buyer clicks on a PayPal button.
  2. The PayPal button calls the PayPal API to set up the payment.
  3. The button starts the checkout flow in the browser.

Before you begin your Checkout integration, you must set up your development environment.

Set up your development environment

Before you can integrate Checkout, you must set up your development environment. After you get a token that lets you access protected REST API resources, you create sandbox accounts to test your web and mobile apps. For details, see Get started.

Then, return to this page to integrate Checkout.

1. Get the code

Use this fully-annotated script to begin your integration. Take a moment to familiarize yourself with the commented sections, which we'll walk you through one section at a time.

Tip: To create the best checkout process for your customers and increase your conversion rates, consider where you will place the PayPal Checkout button on your site. See Choose the optimal button location to learn more.

2. Set up a payment

In this step, you'll work with the // Set up a payment section of the script.

The payment method is called when your buyer clicks the PayPal button. In the returned actions.payment.create() function, pass in payment options to customize the payment. Start with the basics, such as the total and currency:

Set Paypal As A Secondary Checkout For Your Store Bought

Tip: As a best practice, add line item details, such as shipping, tax, handling fees, insurance, and so on. Your buyer sees the individual charges when they complete their purchase. For example:

A successful call to the Payments API returns confirmation of the transaction, with the created state and a payment ID that you can use in subsequent calls. For a complete list of payment options and returned values, see Create payment in the Payments API Reference.

Tip: Try it in the interactive code demo.

3. Execute the payment

This step references the // Execute the payment section of the script.

The onAuthorize method is called after your buyer logs in and authorizes the payment. After the returned action.payment.execute() function, customize the script to show your buyer a confirmation message, such as 'Thank you for your purchase!', or redirect the buyer to a confirmation web page.

Tip: Try an example confirmation message in the interactive code demo.

A successful response returns confirmation of the transaction, with the approved state and a transaction ID. See the complete list of response values in the Payments API Reference.

For information on setting up payment notifications, see Add Webhook Notifications.

Next, test your button in the sandbox.

4. Test it

To test your button, complete these steps. First, set up your development environment.

Run test transactions

  1. Click your PayPal Checkout button.
  2. Log in to PayPal using the test buyer account you created earlier.
  3. Complete a transaction.

Set Paypal As A Secondary Checkout For Your Store Manager

Verify test transactions

Verify your test transactions from both the merchant's and buyer's perspective:

  1. Log in to the sandbox using your sandbox merchant account to confirm that the funds have been received (minus any processing fees).
  2. Log in to the sandbox using your sandbox buyer account to confirm that the funds have been sent.
Your

When your test is complete and you're satisfied with the results, you can launch your new button into production.

Set Paypal As A Secondary Checkout For Your Store Card

5. Go live

To launch your button into production, complete these steps:

  1. Create a PayPal business account.
  2. Replace sandbox credentials with live credentials.
  3. Test a live transaction.

Create a PayPal business account

Note: If you already have a PayPal business account, skip this section.

  1. Go to the PayPal home page and click Sign Up.
  2. Select Business Account and follow the on-screen instructions.

Replace sandbox credentials with live credentials

  1. Log into your Developer Dashboard with your PayPal account credentials.
  2. On My Apps & Credentials, click the Live toggle.
  3. In the REST API apps section, click Create App.

    Note: You must have a business account to create or access live apps.

  4. Click Create App.
  5. Configure your live app to match the configuration of your sandbox app.
  6. Copy your live client ID.
  7. In the // Configure environment section of the script, set env to production and type the live client ID that you copied earlier:

Test a live transaction

  1. Click your PayPal Checkout button.
  2. Log in to the PayPal window using a real buyer account.If you don’t have a real PayPal buyer account, go to the PayPal website and click Sign Up.
  3. Complete a transaction.

Verify live transactions

Verify your live transactions from both the merchant's and buyer's perspective:

  1. Log in to PayPal using your real PayPal business account to confirm that the funds have been received (minus any processing fees).
  2. Log in to PayPal using a real PayPal buyer account to confirm that the funds have been sent.

Congratulations. You have completed the PayPal Checkout integration. Your new button sets up and executes simple one-time payments, all from your web page.

Next

To set up and execute advanced payments, such as authorization and capture, recurring billing, and refunds, see:

If you don't need advanced payment options, you can visit these topics to customize your new button or the checkout flow: