WayForPay Integration for OpenCart
WayForPay integration for OpenCart
Configuring the module itself is straightforward. The real work is making sure payments are credited in every scenario, not just the successful one.
What is included
- connecting and configuring the payment method for your store version;
- request signature verification — without it, order status can be forged from outside;
- handling every scenario: success, cancellation, error, refund;
- protection against double processing, in case the provider sends its confirmation twice;
- correct status transitions and the customer email;
- testing in verification mode, then a small live payment.
The main problem
"Money taken, order unpaid." The cause is usually not the module: the provider's callback to your site is blocked by protection — a firewall, a WAF, or a country restriction. The store simply never receives the payment confirmation.
The exception for the callback URL is created by request URL, not by IP: the provider's ranges change, and an IP-based rule breaks sooner or later.
About custom checkouts
If you have a non-standard checkout, integration gets harder: such solutions often handle statuses in their own way. That is worth accounting for before work begins.
Tags: wayforpay, opencart, payments, integration