Also factor in optin and optout for auto_enabled

This commit is contained in:
David Bomba 2020-12-10 19:47:17 +11:00
parent 91f90c94e3
commit 894481989c

View File

@ -113,11 +113,11 @@ class StoreRecurringInvoiceRequest extends Request
private function setAutoBillFlag($auto_bill) private function setAutoBillFlag($auto_bill)
{ {
if ($auto_bill == 'always') { if ($auto_bill == 'always' || $auto_bill == 'optout') {
return true; return true;
} }
if ($auto_bill == 'off') { if ($auto_bill == 'off' || $auto_bill == 'optin') {
return false; return false;
} }
} }