Today I will show you how to setup paypal for woocommerce from A to Z. Also, I am using WordPress version 4.9 and woocommerce version 3.5.4 in this tutorial.
Paypal gateway is built in woocommerce plugin, so you don’t need to install it.
How to setup paypal in woocommerce
Login to WordPress dashboard, navigate to Woocommerce > Settings, select Payments tab then Click on Manage at Paypal Method.
Paypal gateway in woocommerce.
After clicking on Manage button in the previous step, a new paypal setting window appears. Make sure Enable Paypal Standard is on; Paypal email is filled in; Enable IPN email notifications is on. If your main paypal email differs from the Paypal email entered above, input your main receiver email for your paypal account here. This is used for validate IPN request. Besides, Paypal identity token is also input here. (How to achieve Paypal identity token, I will show you at the end of this tutorial).
Paypal parameters in woocommerce.
In order to process refunds via PayPal, we need to setup PayPal API credentials. Therefore, we need to input Live API username, Live API password and Live API signature. (How to achieve Live API username, Live API password and Live API signature, I will show you at the end of this tutorial).
Paypal API credentials in woocommerce.
How to achieve Paypal identity token, Live API username, Live API password and Live API signature for woocommerce setting.
How to get Paypal ID Token
Login to Paypal: https://www.paypal.com/ca/signin
- Click on Profile Setting icon on the top menu
How to get ID Token in Paypal.
At My Profile Setting, Navigate to My selling tools, then click on Update at Website preferences.
How to get ID Token in Paypal.
In website payment preferences setting, enable Auto return, input return URL, eg: https://myshop.com/thank-you. This URL will be used to redirect your customers after a payment. After turning on Payment data transfer, you will have Identity Token.
How to get ID Token in Paypal.
How to get Live API username, API password and API signature
At My Profile Setting, Navigate to My selling tools, then click on Update at API access.
How to get API credentials in Paypal.
In Your payment API credentials setting, under NVP/SOAP API integration click on Request API credentials.
How to get API credentials in Paypal.
At Quick security check window, select Receive a text option then click on Next button.
How to get API credentials in Paypal.
6-digit security code will be sent to your phone, enter this code and click on Continue button.
How to get API credentials in Paypal.
At credential Information window, copy API username, API password and API signature and store in secure location for woocommerce setting. Click on Done button.
How to get API username, API password and API signature.
That is!
After setting these steps above, checkout any product you will see Paypal option at the end of the checkout page.
Paypal option at checkout page.
In this tutorial, I have already shown you how to setup paypal gateway in woocommerce. Moreover, I demonstrated how to achieve Paypal ID Token. Then I also guided you how to get API credentials in Paypal including Live API username, Live API password and Live API signature.
If you have any question about setting paypal in woocommerce, please leave comments below.
To learn more how to setup stripe in woocommerce: https://techfivestars.com/woocommerce-stripe-setup/