Skip to content

Commit

Permalink
Set has_fields to false if the source type is truemoney_jumpapp. (#445)
Browse files Browse the repository at this point in the history
Co-authored-by: Aashish <aashish@omise.co>
  • Loading branch information
aashishgurung and Aashish committed Mar 14, 2024
1 parent ac0d98e commit d6584e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/gateway/class-omise-payment-truemoney.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public function get_source()
$capabilities = Omise_Capabilities::retrieve();

if (!$capabilities) {
$this->has_fields = false;
return self::JUMPAPP;
}

Expand All @@ -136,6 +137,7 @@ public function get_source()
// Case 1: Both jumpapp and wallet are enabled
// Case 2: jumpapp is enabled and wallet is disabled
// Case 3: Both are disabled.
$this->has_fields = false;
return self::JUMPAPP;
}
}

0 comments on commit d6584e3

Please sign in to comment.