Set Paypal As A Secondary Checkout For Your Store

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.

You cannot change from a bank account to a credit card as your default payment method. PayPal simply does not allow that. What you can do is register a credit card as a secondary payment method and then change your payment method for each transaction you make with PayPal, on a payment-by-payment basis. You can let customers buy now and pay later with Pay in 4 and PayPal Credit, which are available for users in the U.S. As part of the PayPal Checkout stack. With both PayPal Credit and Pay in 4, your customers can pay over time, but you still get paid in full at the time of sale.

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:

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.

Set

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.

Secondary
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.

Umair Sajid Minhas - Soft Transmission Its an Unique Service of its type, Just Send me Details of Software i will Send you any Software Free of Cost, with Patch, Keygen, Serial key Etc. Every Thing You. Umair sajid minhassoft transmission.

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.

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.

Set Paypal As A Secondary Checkout For Your Store Bought

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

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

Set Paypal As A Secondary Checkout For Your Store Manager

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.

Set Paypal As A Secondary Checkout For Your Store Card

Next

Set Paypal As A Secondary Checkout For Your Store Online

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: