You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DirectDebitService::submit does not gracefully handle bad data. If the submitted Purchase object has none of ach, eft, bacs, or sepa set, the function will cause a PHP error: Undefined variable: return
Additionally, DirectDebitService::standaloneCredits suffers from the same logic flaw. If the submitted StandaloneCredits object has none of ach, eft, or bacs set, the function will cause a PHP error: Undefined variable: return
It would likely be more appropriate to throw an exception in these cases. Or, at least have some meaningful return.
The text was updated successfully, but these errors were encountered:
PayLeaseBrian
changed the title
DirectDebitService::submit does not gracefully handle bad data
DirectDebitService::submit and DirectDebitService::standaloneCredits do not gracefully handle bad data
Dec 12, 2017
DirectDebitService::submit
does not gracefully handle bad data. If the submittedPurchase
object has none ofach
,eft
,bacs
, orsepa
set, the function will cause a PHP error:Undefined variable: return
Additionally,
DirectDebitService::standaloneCredits
suffers from the same logic flaw. If the submittedStandaloneCredits
object has none ofach
,eft
, orbacs
set, the function will cause a PHP error:Undefined variable: return
It would likely be more appropriate to throw an exception in these cases. Or, at least have some meaningful return.
The text was updated successfully, but these errors were encountered: