Zihad
Zihad

Reputation: 360

how to autogenerate transaction ID during checkout in Opencart?

I am trying to integrate a payment gateway (www.sslcommerz.com.bd) in Opencart which requires to submit a transaction id at the time of checkout. This transaction id needs to be stored in the database and The gateway will save the Transaction ID for any sort of future queries and cross checking with online store system for verification of payment completion. I am new to Opencart. can anyone please give some idea how should I approach to achieve that? thanks in advance.

Upvotes: 1

Views: 1287

Answers (1)

Jay Gilford
Jay Gilford

Reputation: 15151

Take a look at any one of the other modifications for payment gateways in your version(s). PayPal Standard is most likely the best option. You will see that the order ID is set in a session variable as it is generated by the checkout and can be accessed in your payment gateways' template file/through the controller file. The session variable is

$this->session->data['order_id']

Upvotes: 1

Related Questions