Jump to content

Identifying payments. Order ID vs. cart ID


Recommended Posts

I tried a quick search with no immediate result, but please bear over with me if this has been brought up before.

When a payment is handled, the number parsed to the payment module is the cart ID ($order->id_cart). This means that a payment gateway can register the user supplied number for the transaction. But when you want to check the numbers from the payment gateway towards the numbers in PrestaShop you are lost. PrestaShop deals with the order IDs ($order->id or $order->id_order) and the cart ID is invisible.

One solution is to generally use cart ID and forget about order ID. Another solution could be to create the order entry before entering the payment module.

Any comments?

/Kjeld

Link to comment
Share on other sites

  • 1 month later...

Can you tell me which part of the code inserts order in Prestashop DB table. I am using EBS payment gateway and am able to receive the response from EBS but I am unable to insert the order in Prestashop table. Any help would be appreciated as I am struck with this.

Link to comment
Share on other sites

×
×
  • Create New...