Order status in not changing from pending to paid after payment successfully done.

21.10.2015 20:34
#1
imasad
Joomshopping forum user no avatar
Name: Asad
10.05.2013
Posts: 5
Quote
Order status in not changing from pending to paid after payment successfully done.

Order status in not changing from pending to paid after payment successfully done. I have found that the checkout.php file in controller.

if ($act == "return" && !$checkReturnParams){
$checkout->setMaxStep(10);
if (!$wmiframe){
$this->setRedirect(SEFLink('index.php?option=com_jshopping&controller=checkout&task=finish', 0, 1, $jshopConfig->use_ssl));
}else{
$this->iframeRedirect(SEFLink('index.php?option=com_jshopping&controller=checkout&task=finish', 0, 1, $jshopConfig->use_ssl));
}
return 1;
}
after this function when call back url is called it does not store the order id. below code order id is empty

$order = JSFactory::getTable('order', 'jshop');
$order->load($order_id);

what should i do?


Joomla: 3
JoomShopping: 4.11.0
PHP: 5
 
21.10.2015 21:14
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25907
Quote
Aw: Order status in not changing from pending to paid after payment successfully done.

Joomshopping version?

file version?

code controller 4.11.0

if ($act == "return" && !$checkout->getCheckReturnParams()){
$checkout->setMaxStep(10);
if (!$wmiframe){
$this->setRedirect($checkoutStep->getCheckoutUrl('finish'));
}else{
$this->iframeRedirect($checkoutStep->getCheckoutUrl('finish'));
}
return 1;
}

 
21.10.2015 21:23
#3
imasad
Joomshopping forum user no avatar
Name: Asad
10.05.2013
Posts: 5
Quote
Aw: Order status in not changing from pending to paid after payment successfully done.

not working....

joomshopping version 4.11.0

 
21.10.2015 21:33
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25907
Quote
Aw: Order status in not changing from pending to paid after payment successfully done.

controller checkout file version?

Error in update.
update again or copy file manual (ftp)

 
21.10.2015 21:34
#5
imasad
Joomshopping forum user no avatar
Name: Asad
10.05.2013
Posts: 5
Quote
Aw: Order status in not changing from pending to paid after payment successfully done.

@version 4.11.0 18.12.2014

 
21.10.2015 21:40
#6
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25907
Quote
Aw: Order status in not changing from pending to paid after payment successfully done.

Code old version

if ($act == "return" && !$checkReturnParams){
$checkout->setMaxStep(10);
if (!$wmiframe){
$this->setRedirect(SEFLink('index.php?option=com_jshopping&controller=checkout&task=finish', 0, 1, $jshopConfig->use_ssl));
}else{
$this->iframeRedirect(SEFLink('index.php?option=com_jshopping&controller=checkout&task=finish', 0, 1, $jshopConfig->use_ssl));
}
return 1;
}

 
21.10.2015 21:50
#7
imasad
Joomshopping forum user no avatar
Name: Asad
10.05.2013
Posts: 5
Quote
Aw: Order status in not changing from pending to paid after payment successfully done.

let me install 4.11.0 again may be i have missed some thing...

 
21.10.2015 22:07
#8
imasad
Joomshopping forum user no avatar
Name: Asad
10.05.2013
Posts: 5
Quote
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;
}
}


Last change: 21.10.2015 22:09
 
22.10.2015 07:49
#9
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25907
Quote
Aw: Order status in not changing from pending to paid after payment successfully done.

works for me.

payment system?

 
22.10.2015 08:25
#10
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25907
Quote
Aw: Order status in not changing from pending to paid after payment successfully done.

Developer test payment system
pm_test.zip

1. install
2. configurate payment (status)
2. pablish

Create order.


Last change: 22.10.2015 08:26
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.