Quick start
The shortest route from a fresh installation to a tested PayPal checkout: configure test mode, pay with a PayPal sandbox account, then repeat the setup with live credentials.
Set up test mode
- Install the extension and validate your licence. See Installation and Licence activation.
- Open DevmanExtensions > PayPal Checkout PRO. With several stores, choose the one to configure in the Store selector.
- In the PayPal Developer dashboard, switch to Sandbox and create a REST app. Copy its Client ID and Secret, and the Merchant ID of the sandbox business account that owns it. Details are in PayPal connection.
- In the extension, open the Payment notifications tab and copy the Test address with Copy URL.
- In the same PayPal app, add a webhook with that address, select the seven events listed in the tab and save. Copy the Webhook ID that PayPal shows.
- In the PayPal connection tab, fill in Test · Client ID, Test · Client secret, Test · Merchant ID and Test · Webhook ID.
- In the Settings tab, set Mode to Test, choose a Paid order status and set Payment method to Enabled.
- Click Save settings. The message "Settings saved." confirms it.
PayPal now appears at checkout for carts that meet the rules in Settings.
Test in the PayPal sandbox
PayPal provides sandbox test accounts: a business account (the seller) and a personal account (the buyer) with a fictitious balance. Their e-mail addresses and passwords are in the PayPal Developer dashboard under Testing Tools > Sandbox Accounts; see PayPal's sandbox accounts guide. No real money or card is involved.
Run these checks in your storefront:
- Successful payment. Place an order, click Pay with PayPal, log in with the sandbox personal account and approve. You land on the OpenCart success page. The order has the paid status you chose and a history entry starting with
PayPal:. Stock is deducted once. - Cancellation. Start a payment and use the cancel link on the PayPal page. You return to the checkout and the order is not confirmed.
- Closed browser. Approve a payment on PayPal and close the browser before returning to the store. The webhook completes the payment and the order is confirmed.
- Webhook delivery. In the PayPal app, check in the webhook's event history that deliveries to your address were answered with HTTP 200.
- Payment activity. Check in the Payment activity tab that each test has the expected state. See Payment activity.
The customer's return and PayPal's notification can arrive in either order; the result is the same. Do not ship an order whose payment is still pending.
Go live
Test and live use separate credentials, a separate webhook and a separate Webhook ID.
- In the PayPal Developer dashboard switch to Live and create a live REST app in your real business account.
- Add a webhook to the live app with the Live address from the Payment notifications tab and the same seven events.
- In PayPal connection, fill in the four Live · fields.
- In Settings, change Mode to Live and click Save settings.
Going-live checklist
- The storefront runs on HTTPS.
- The four live values belong to the same PayPal app and business account.
- The live webhook uses the address shown under Live, which ends in
mode=live, with all seven events. - Paid order status is the status your team uses for paid orders.
- Minimum order total and Geographic zone are set for real customers.
- Your store currencies are supported and their decimal places follow the rules in Settings.
- The sandbox tests above have passed, and no test payment is left pending or under review.
- After the first real payment, check the order, its history entry and the Payment activity tab.
Still need help?
Open a support ticket from your account and our team will look at your store with you.