Aw: Order status in not changing from pending to paid after payment successfully done.
Ok i have install new version again
still problem with status payment has successfully done but status is not changing.
call back url is
index.php?option=com_jshopping&controller=checkout&task=step7&act=notify&js_paymentclass=pm_quickpay&no_lang=1
i did not see action=notify in controller checkout.php page
i have attache the checkout.php file.
but i think attachment does not support php file.
function step7(){
$checkout = JSFactory::getModel('checkoutBuy', 'jshop');
$wmiframe = JRequest::getInt("wmiframe");
$checkoutStep = JSFactory::getModel('checkoutStep', 'jshop');
JDispatcher::getInstance()->trigger('onLoadStep7', array());
$act = JRequest::getVar("act");
$payment_method = JRequest::getVar("js_paymentclass");
$no_lang = JRequest::getInt('no_lang');
$checkout->saveToLogPaymentData();
$checkout->setSendEndForm(0);
$checkout->setAct($act);
$checkout->setPaymentMethodClass($payment_method);
$checkout->setNoLang($no_lang);
if (!$checkout->loadUrlParams()){
JError::raiseWarning('', $checkout->getError());
return 0;
}
if ($act == "cancel"){
$this->cancelPayOrder($checkout->getOrderId());
return 0;
}
if ($act == "return" && !$checkout->getCheckReturnParams()){
$checkout->setMaxStep(10);
if (!$wmiframe){
$this->setRedirect($checkoutStep->getCheckoutUrl('finish'));
}else{
$this->iframeRedirect($checkoutStep->getCheckoutUrl('finish'));
}
return 1;
}
$codebuy = $checkout->buy();
if ($codebuy==0){
JError::raiseWarning('', $checkout->getError());
return 0;
}
if ($codebuy==2){
die();
}
if ($checkout->checkTransactionNoBuyCode()){
JError::raiseWarning(500, $checkout->getCheckTransactionResText());
if (!$wmiframe){
$this->setRedirect($checkoutStep->getCheckoutUrl('5'));
}else{
$this->iframeRedirect($checkoutStep->getCheckoutUrl('5'));
}
return 0;
}else{
$checkout->setMaxStep(10);
if (!$wmiframe){
$this->setRedirect($checkoutStep->getCheckoutUrl('finish'));
}else{
$this->iframeRedirect($checkoutStep->getCheckoutUrl('finish'));
}
return 1;
}
}
Letzte Änderung: 21.10.2015 22:09