in src/main/scala/InvoiceHelper.scala [92:98]
def prepareForPayment(accountId: String) = for {
account <- getAccountSummary(accountId)
reset <- account.basicInfo.defaultPaymentMethod.map {
paymentMethod => resetFailedPaymentsCounter(accountId, paymentMethod)
}.getOrElse(-\/(s"Account has no default payment method so cannot be prepared for payment"))
autoPay <- turnOnAutoPay(accountId)
} yield autoPay