Skip to content

Commit 6fc36e7

Browse files
committed
minor fix
1 parent b61333b commit 6fc36e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/class-wc-gateway-criptomarket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,11 @@ public function process_payment($order_id) {
498498

499499
//Min value validation
500500
if(isset($result->data[0])){
501-
$default_min_value = (float) $result->data[0]->bid * 0.001;
501+
$this->default_min_value = (float) $result->data[0]->bid * 0.001;
502502
}
503503
$total_order = (float) $order->get_total();
504504

505-
if ($total_order > $default_min_value) {
505+
if ($total_order > $this->default_min_value) {
506506
try {
507507

508508
$success_return_url = $this->get_return_url($order);

0 commit comments

Comments
 (0)