Hi,
I've just started using OpenCart and is my first time with it. I have setup the store but now I I have a problem.
I'm doing a store for a software. I want to execute a php code once the payment module receives the IPN. It basically sends the user the serial number from a db. How can I do this? This can be as a shipping extension because some orders are manually processed but the serial generation remains the same.
Thanks a lot
Shantanu Thatte
well I dont think you mean to say "shipping"
You mean payment. There is a serial number generator system here:
http://www.opencart.com/index.php?route ... on_id=1914
You mean payment. There is a serial number generator system here:
http://www.opencart.com/index.php?route ... on_id=1914
Hi,
Actually its not that simple. There are details that need to be submitted to a separate server with the customer details and then email the response received from it. I have seen the payment module. But I need to initialize this process once the payment is confirmed, that's why I thought it should come under shipping because its a sort of shipping done by the remote server. I have seen the free shipping extension. Where should I place my php code in that ?
Shantanu
Actually its not that simple. There are details that need to be submitted to a separate server with the customer details and then email the response received from it. I have seen the payment module. But I need to initialize this process once the payment is confirmed, that's why I thought it should come under shipping because its a sort of shipping done by the remote server. I have seen the free shipping extension. Where should I place my php code in that ?
Shantanu
I know what you are trying to do. A lot of sites have done it. But you still don't want shipping. Shipping has no "triggered" state. It simply determines whether or not they pay extra money for shipping.
Your only option for this would be in the catalog/model/checkout/order.php file
in the "confirm()" function as this is the final triggered state that gets fired after payment has been considered "successful". Also, all the order and customer data is available there. Depending on how you will submit the data to the other server (if POST, use curl, if GET use file_get_contents), you can set the code somewhere near the end of this function and it will do what you need.
Your only option for this would be in the catalog/model/checkout/order.php file
in the "confirm()" function as this is the final triggered state that gets fired after payment has been considered "successful". Also, all the order and customer data is available there. Depending on how you will submit the data to the other server (if POST, use curl, if GET use file_get_contents), you can set the code somewhere near the end of this function and it will do what you need.
Thanks a ton.... that was exactly what I was looking for.... Thanks a lot... will report back after successful experimentation.....
Who is online
Users browsing this forum: No registered users and 1 guest