'How can I changing PHP code using country code
I would like to change PaymentMethodStatus::ACTIVE to PaymentMethodStatus::INACTIVE when country code is not IN. what code should i use?
public function isEnable()
{
if (!$this->isActive()) {
return false;
}
if ($this->paymentMethod->status==PaymentMethodStatus::ACTIVE) {
return true;
}
return false;
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
