File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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" : " *" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments