Also factor in optin and optout for auto_enabled
This commit is contained in:
parent
894481989c
commit
8c46e140af
1 changed files with 5 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue