sharktek Posted November 20, 2014 Report Share Posted November 20, 2014 Hey all, Within the API Documentation, I found the method addCc method to save a credit card to a contact. However, I am looking for an API method which enables that card to be auto debited (auto-pay) after each invoice is generated from the service (once a month). Does anyone have any suggestions? I was unable to find a method to do so. Quote Link to comment Share on other sites More sharing options...
Jonathan Posted November 20, 2014 Report Share Posted November 20, 2014 Do you have to use the API or can you do some direct MySQL queries? If the latter, I can show you how. Quote Link to comment Share on other sites More sharing options...
Tyson Posted November 21, 2014 Report Share Posted November 21, 2014 You should take the return value from Accounts::addCc, along with the client ID, and add it as the debit account with Clients::addDebitAccount. You only do this once. Blesta will handle autodebiting it based on the client/company autodebit settings. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.