diff --git a/src/app/code/community/Bitbull/Satispay/Model/Payment.php b/src/app/code/community/Bitbull/Satispay/Model/Payment.php index 12c2683..185a04c 100644 --- a/src/app/code/community/Bitbull/Satispay/Model/Payment.php +++ b/src/app/code/community/Bitbull/Satispay/Model/Payment.php @@ -133,6 +133,13 @@ public function initialize($paymentAction, $stateObject) $session->setOrderId($orderId) ->setCurrency($currency) ->setAmount(round($amount * 100)); + + $stateObject->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT); + + //It would be better to ask Magento for the default status of the "pending_payment" state, + //but as other parts of the module explicitly check the status against this constant, then + //I think it's fine to leave this here. + $stateObject->setStatus(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT); return $this; } diff --git a/src/app/code/community/Bitbull/Satispay/etc/config.xml b/src/app/code/community/Bitbull/Satispay/etc/config.xml index 6e48c03..8bc8f73 100644 --- a/src/app/code/community/Bitbull/Satispay/etc/config.xml +++ b/src/app/code/community/Bitbull/Satispay/etc/config.xml @@ -72,7 +72,6 @@ Pay with Satispay - pending_payment sale satispay/payment +39