Skip to content

Commit 52725ec

Browse files
author
Mario Pando
committed
added new library
1 parent 31ca825 commit 52725ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
],
1515
"require": {
16-
"cryptomkt/cryptomkt": "1.1.x-dev"
16+
"cryptomkt/cryptomkt-guzzle-php": "dev-master"
1717
},
1818
"require-dev": {
1919
"wp-cli/wp-cli": "*",

src/class-wc-gateway-criptomarket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ public function process_payment($order_id) {
489489
}
490490

491491
//Min value validation
492-
$min_value = (float) $result[0]['bid'] * 0.001;
492+
$min_value = (float) $result['data'][0]['bid'] * 0.001;
493493
$total_order = (float) $order->get_total();
494494

495495
if ($total_order > $min_value) {
@@ -513,7 +513,7 @@ public function process_payment($order_id) {
513513
// Redirect the customer to the CryptoMarket invoice
514514
return array(
515515
'result' => 'success',
516-
'redirect' => $payload['payment_url']
516+
'redirect' => $payload['data']['payment_url'])
517517
);
518518

519519

0 commit comments

Comments
 (0)