How to setup PayPal payment gateway to your WooCommerce Website
What is Paypal?
One of the financial service that allow you to make a secure purchase, transfer money and accept payments
An online payment method
Why PayPal?
- Convenient payment process (Enter email and password to pay)
- Provide buyer protection (Money back guarantee)
- Secure payment method
16.0 Set Up Payment gateway (PayPal)
- Go to WooCommerce > Settings > Payments
- Click Set Up
- Check box to Enable PayPal standard
- Set Title shown to customers during checkout
- Add info shown to customers if they select PayPal
- Enter Paypal account email address to receive payment in PayPal email
- Check the box to Enable PayPal sandbox. Refer Set up PayPal sandbox to test payment before go live
- Check Debug log for troubleshooting purpose
- Enter primary address in Receiver email
- PayPal identity token use to verify payment without PayPal IPN. Can provide token to customers so that they can get details of payment process
Refer Get PayPal Identity Token for steps - Invoice Prefix – initial code to help you identify transaction
Once purchase made, invoice number generated with unique number and prefix
Useful if you owns more than one online store
By default, prefix is set WC - Check the box enable shipping details send to PayPal address instead of billing address
- Address override – PayPal verify address thus this settings may cause error
Recommend to disabled - Choose Payment action
– Capture – payment from customers process immediately without any verification, save time
– Authorize – you need to authorize payment manually before the payment is finalizing and complete, time consuming and customers easily get annoyed - Optionally enter name of page style you wish to use
Defined within PayPal account
Affect classic PayPal checkout - Optionally enter URL to image display as logo in upper left corner of PayPal checkout page
- Enter your Live API username, password and signature. Refer Get PayPal API credentials for steps
- Click Save Changes.
16.1 Get PayPal Identity Token
- Login to PayPal account
- Click Settings icon at upper right
- Select Account Settings from dropdown
- Select Website payments tab under Products & Services section
- Select Update at the right of Website preferences
- Select On for Auto return, Enter your website URL in Return URL and Click Save
- Select On for Payment Data Transfer. Done.
16.2 Get PayPal API credentials
- Login to your PayPal account
- Click Settings icon at upper right
- Select Account Settings from the dropdown
- Select Account access tab under Account & Security section
- Click Update at the right of API access
- Scroll down the page of payment API credentials
- Search for NVP/SOAP API integration (Classic)
- Click Manage API credentials
- View or Remove API Signature page display
- Click Show and Copy your API username, API password and signature
16.3 Set up PayPal sandbox
Create PayPal sandbox account to test PayPal processes before go live
Before begin
- Create one PayPal account
- Open PayPal developer website
- Click Log into Dashboard button at top right
- Enter your PayPal account email and password
- Click Log In
- Navigate to Accounts under Sandbox
- Click Create Account to create sandbox account
- Select Personal (Buyer Account) for Account Type
- Select country from dropdown list
- Click Create
The account is created. - Click … at column of Manage Accounts
- Select View/ Edit Account from dropdown
- Account Details prompt out display
You can either use generated Email ID and Password or create new Email ID and Password - Click Edit in the prompt out if want to create your own email ID and password
- You can change your email ID and password
- After change, Click Save at the bottom of prompt out
- Close the prompt out.
Repeat the steps from 6 – 15 for Business (Merchant Account) - After that, Go to WooCommerce > Settings > Payments
- Click Manage button
- Select checkbox of Enable PayPal sandbox
- Enter merchant test account email created in Step 16 for PayPal email and Receiver email
- Click Save changes at bottom of page. Now PayPal payment method is in test mode.
16.4 Make Test Purchase
Make purchase using buyer test account
- Go to your website
- Add some products to cart and Click Proceed to checkout
- Fill in your billing details
- Click Proceed to PayPal
- Enter your buyer test account email and password
- Click Log In
You are being sent to test store (URL in address bar is www.sandbox.paypal.com ) - Click Pay Now button
- Click Return to merchant at bottom to complete your order. Checkout page display your Order details, Billing address and Shipping address. You have made payment without real money
Note: Remember to delete testing order after done testing Paypal, untick Enable PayPal sandbox checkbox and enter real PayPal account email for PayPal email and Receiver email
17.0 Check User and Its Order
17.1 View customers that made payment on website
- Go to WooCommerce > Customers
- View customers list on the right
17.2 View Customer’s Order
-
- Go to WooCommerce > Orders
The details display include: Order number, Date of Purchase, Order Status and Purchase Total (it might be vary with yours) - Select Screen Options at the top upper right corner to change the details display
- Select the checkbox for columns you want to display and Click Apply button
- Click eye icon to view the order details
A modal popup display order details
- Go to WooCommerce > Orders
17.3 Update User Status
- Go to WooCommerce > Orders
- Click the Status (eg: Processing) / Order number of order you want to change
- You will be redirected to Order Details Panel
- Select the status you wish to change from the dropdown list
There are 7 types of status available:
Pending payment — Order received, no payment initiated. Awaiting payment (unpaid).
Processing — Payment received (paid) and stock has been reduced; order is awaiting fulfillment. All product orders require processing, except those that only contain products which are both Virtual and Downloadable.
On hold — Awaiting payment – stock is reduced, but you need to confirm payment.
Completed — Order fulfilled and complete – requires no further action.
Canceled — Canceled by an admin or the customer – stock is increased, no further action required.
Refunded — Refunded by an admin – no further action required.
Failed — Payment failed or was declined (unpaid) or requires authentication (SCA). - Click Update at the right to save the changes
In conclusion, to develop an eCommerce website is not a difficult task. But, choose the right themes is a very important decision shall make before starting the project. Because, after developing, it could let us run our business for at least 3-5 years. Astra theme is one of the themes that can fulfill the requirement of the search engine, especially Google.
Would you like to look for a hand to develop a hassle-free eCommerce website for yourself? Yes, we are willing to help. Contact us now!