eureka Posted December 16, 2002 Share Posted December 16, 2002 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. :? Mark. Link to comment Share on other sites More sharing options...
Ian Posted December 17, 2002 Share Posted December 17, 2002 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)); HTH Trust me, I'm an Accountant. Link to comment Share on other sites More sharing options...
eureka Posted December 17, 2002 Author Share Posted December 17, 2002 Thanks for your reply. I'll pass on the info onto my payment provider and see how we go. Link to comment Share on other sites More sharing options...
Ian Posted December 17, 2002 Share Posted December 17, 2002 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.