Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

"Checkout_Process" Query - success & non-succe


Recommended Posts

I'm setting up pre-Nov '02 osC site with a payment gateway provider, they're modifing the cc.php payment module so my site "talks" to their server.


A few queries:


1. On a successful credit card transaction the provider's server calls back to checkout_success.php, what do they call back to if unsuccessful?


2. With my limited PHP, is the order details processed by checkout_process.php and written to SQL database regardless of what happens, success or unsuccess?


Please help.




Link to comment
Share on other sites

They need to take a good look at one of the installed payment modules. authorize.net is a good example of one that goes thru all the hoops.


In general for an offsite payment processor you set the process_button function to set_up all the variables your payment processor requires. Also setting the $this->form_action_url to point to your payment processor site.


On return the processor should go back to checkout_process. They should return a an erro code either in a post or get var.


the before process function can then check for the existence of the error code and redirect

        tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PROCESSOR_TEXT_ERROR_MESSAGE), 'SSL', true, false));



Trust me, I'm an Accountant.

Link to comment
Share on other sites

It would be nice as well that if they do complete a solution, that that solution was made into a contribution. This would benefit them as much as it would benefit osCommerce.

Trust me, I'm an Accountant.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...