How do I stop initial recurring payment charged twice in Opencart?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So far, my customers are being charged twice when paying the initial recurring payment. I have searched OpenCart forum and the internet for a clear solution. One solution I found referred to the APIs. But where do I make those changes? This is what I found from an older post. Does it still applies? The link is now 404 Error
Below are the comments I received from Paypal support, but not sure how to implement this in Opencart, can you please help.
Your shopping cart is using ExpressCheckout to create a recurring profile.
A normal one-time payment Express Chekout payment will include:
1) SetExpressCheckout API
2) GetExpressCheckoutDetails API (optional)
2) DoExpressCheckout API
When the DoExpressCheckout API call is made, this mean it will be a one-time payment.
Creating a recurring profile using Express Checkout will be:
1) SetExpressCheckout API
2) GetExpressCheckoutDetails API (optional)
3) CreateRecurringPaymentProfile API
To create recurring payment profile, you dont even need to complete the first payment (until DoExpressCheckout API). You can refer here for more information on how Reucrring Profile created using Express Checkout:
https://developer.paypal.com/docs/class ... -curl-etc/
What you/your shopping cart doing is completing the ExpressCheckout cycle and creating the RecurringPayment Profile together.
You/your shopping cart include all of these together in 1 flow:
1) SetExpressCheckout API
2) GetExpressChcekoutDetails API
3) CreateRecurringPaymentProfile API
4) DoExpressCheckout API
So when a full ExpressCheckout flow is made you are actually charging the customer a one-time payment, and together creating a recurring profile. Resulting in your customer being charged twice.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Opencart 2.3.0.2 . using "PayPal Checkout Integration" started charging customers twice. in PayPal Payments Standard
- OpenCart PayPal Express Checkout Problem Occured but no Error response in Log in NVP/SOAP APIs
- Getting error on PayPal Express payment integration with OpenCart in PayPal Payments Standard
- Is it Possible to Issue Refunds for Canceled Subscriptions Via REST API? in REST APIs