Also factor in optin and optout for auto_enabled

This commit is contained in:
David Bomba 2020-12-10 19:51:00 +11:00
parent 894481989c
commit 8c46e140af

View File

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