I've implemented payment module in Opencart based on BankTransfer module. Algorithm:[*]I get values orderId, merchantID, amount, currency. I encrypt them. [*]I send those values to payment gateway with "GET" response.[*]Payment gateway then encrypts the values, processes the payment, and encrypts transaction status with its own signature, and sends that to me. [*]My system using php script decrypt the message, and find the transaction status. QUESTION: How can i parse the values from php script to Opencart module (banktransfer.php)? Specifically, to \[code\]public function confirm()\[/code\]?Approach: I've naively thought that http://example.com/opencart/index.php?route=checkout/success is the success link. I thought if i redirect to this page from php script, order would be confirmed, it's not. Explanation of files:
- banktransfer.php is file opencart gets information from system suchorder id, amount of the order and etc. OpenCart module.
- testkzm.php is a simple php script that decrypts the message, and "tries" to send get paramaters to confirm function in opencart module in banktransfer.