langziyang Posted May 19, 2014 Share Posted May 19, 2014 i use the china online payment api, the have one return url when the pay it success now,my return url is http://xxx/zh/module/chinabank/reutnr_page, how can i change the oreder state on this file(i have payment state like:20 success,30 failed) Link to comment Share on other sites More sharing options...
bellini13 Posted May 19, 2014 Share Posted May 19, 2014 you have to find where the module calls the validateOrder function. Search through the module code for that function and then provide that line of code to us It is going to look something like this... $bankwire->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $bankwire->displayName, NULL, array(), (int)$currency->id, false, $customer->secure_key); Link to comment Share on other sites More sharing options...
langziyang Posted May 20, 2014 Author Share Posted May 20, 2014 you have to find where the module calls the validateOrder function. Search through the module code for that function and then provide that line of code to us It is going to look something like this... $bankwire->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $bankwire->displayName, NULL, array(), (int)$currency->id, false, $customer->secure_key); there is my peyment module: hookpayment function is display the payments_gateways, when select this gateways,will display order summary and display {$link->getModuleLink('chinabank', 'validation', [], true)|escape:'html'}。when click to this link(from),build order to sql and have button link to gateway(online payment),when checkout success,the gateway will return getModuleLink('chinabank','return_page'), this return_page will receive payment state。if success, change order state is Configuration::get("PS_OS_PAYMENT"). there is problem:when use validateOrder function befor ,return_page can get the cart id。 use validateOrder after(checkout success return to return_page) the cart id is empty。so how i need do it? ps:chinese people, english is so bad^-^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now