Skip to content

Commit c49a9b0

Browse files
author
Ariano Fonseca Ângelo
committed
v3.2.2
- Minor fixes
1 parent 7191f11 commit c49a9b0

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,8 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
158158
#### 3.2.1
159159
* Minor fixes
160160

161+
#### 3.2.2
162+
* Minor fixes
163+
161164
### Upgrade Notice
162165
* No breaking changes

catalog/controller/payment/cryptapi.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,12 @@ function order_pay_button(&$route, &$data, &$output)
571571

572572
$orderFetch = $this->model_checkout_order->getOrder($order_id);
573573
$order = $this->model_extension_cryptapi_payment_cryptapi->getOrder($order_id);
574-
$orderObj = json_decode($order['response']);
574+
575+
$orderObj = isset($order['response']) ? json_decode($order['response']) : '';
576+
577+
if(!$orderObj) {
578+
return;
579+
}
575580

576581
if ((int)$orderObj->cryptapi_cancelled === 0 && isset($orderObj->cryptapi_payment_url) && (int)$orderFetch['order_status_id'] === 1) {
577582
$data['button_continue'] = 'Pay Order';

0 commit comments

Comments
 (0)