Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #3 from Karciukass/master
Correct redirect.
  • Loading branch information
jdojff committed Sep 9, 2016
2 parents cfa4425 + 96e8eec commit 455c62c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Expand Up @@ -85,12 +85,6 @@ public function authorize(Varien_Object $payment, $amount)
$payment->setIsTransactionPending(true);
Mage::getSingleton('customer/session')->setRedirectUrl($redirectUrl);
}

return $this;
}

public function getOrderPlaceRedirectUrl()
{
return Mage::getSingleton('customer/session')->getRedirectUrl();
}
}
Expand Up @@ -82,7 +82,7 @@ public function createOrder(CreateOrderRequest $request)
if ($body != null) {
if (is_array($body) && count($body) > 0 && isset($body[0]->code)) {
return new ApiError($body[0]->code, $body[0]->message);
} else if (isset($body->depositAddress)) {
} else if (isset($body->orderRequestId)) {
return new CreateOrderResponse($body->orderRequestId, $body->orderId, $body->depositAddress, $body->payAmount, $body->payCurrency, $body->receiveAmount, $body->receiveCurrency, $body->validUntil, $body->redirectUrl);
}
}
Expand Down

0 comments on commit 455c62c

Please sign in to comment.