4. How to get and use Paypal Token?


To make Autocomplete Orders functionalities working is required to have the PayPal identity token.

So here you have a guide to get it, is strictly necessary to have a  Business Account to get it. Visit Paypal’s tutorial on how to create an account if you haven’t already.

4.1. Obtaining PayPal Identity Token


The PayPal identity token is used to verify payments without using PayPal’s Instant Payment Notification (IPN). Allowing customers to track their payment process in a secure channel.

To obtain the identity token From PayPal:

First access to your PayPal dashboard, go to Account Settings →   Website payments. Tap the Update link next to the Website preferences option.

Then, enable the Auto return for website payments, and add your store’s thank you page link in the Return URL field.

Go to the Payment data transfer section and turn it on. The identity token should appear at the bottom of the section.

4.2. Setting Up PayPal Token on WooCommerce


Follow these steps to integrate PayPal to your WooCommerce store and start using Autocomplete WooCommerce Orders plugin:

Go to your WordPress dashboard, then head over to WooCommerceSettings.

On the Payments tab, enable the PayPal option, and click on the Set Up button next to

  • After the Standard settings:
    • Enable/disable — check the box to enable PayPal as your payment gateway.
    • Title — fill it in with the checkout page heading.
    • Description — add a payment description or a message to your customers.
    • PayPal email — input the PayPal email you use to collect payments.
  • Set up the Advanced options section as so:
    • PayPal sandbox — while it allows you to test PayPal payments, you need to leave it unchecked as it requires a developer account.
    • Debug log — check the box if you want to log all PayPal events.
    • IPN Email Notifications — tick the box to be notified of refunds, chargebacks, and cancellations.
    • Receiver email — add the email address that will receive the notifications.
    • PayPal identity token — input the identity token from PayPal.
    • Invoice prefix — if you connect the PayPal account to multiple stores, you can add a combination of letters and numbers to help you differentiate your invoices.
    • Shipping details — check the box to let PayPal create shipping labels instead of billing the customers directly.
    • Address override — leave it unchecked to prevent customers from changing their address.
    • Payment action — choose Capture to process the payments immediately or Authorize to approve them manually.
    • Page style — input the name of the PayPal page style you want to use for the checkout page.
    • Image URL — allows you to display a 150x50px image in the upper left corner of the checkout page.
  • Finally, configure the API credentials section using the information you can get from PayPal if you need them.
  • Once done, click Save Changes.

You have to paste your identity token from your PayPal Account:

Don’t forget to save changes