How you can use the QuickBooks Payments API for recurring billing!
I want to start off by saying the API itself does not provide the ability to charge a credit card on a regular schedule. However, as a developer you can create a wallet for a customer, store the tokenized credit card in said wallet, and retrieve it to charge it monthly. Once you know how to store and retrieve cards from the wallet, the sky is the limit to any features you want to add on. So let’s get into the details, because that’s where the devil is.
- Create your app and add payments as a data source.
- Create a token from a credit card using the create token API call. See example below.
3. Store the card by token in the wallet using the Card API Call. Make sure you have the customer id to which a card should be stored. The Customer ID can be any ID you want that identifies the customer to you. For example, if they were a customer in your QuickBooks Company file, you could put the Customer ID as an easy reference.
https://developer.intuit.com/docs/api/payments/Cards
4. Now you can retrieve the card by card id or you can retrieve all cards for that user ID. Once you have the card back, you can create a new charge.
That’s pretty much it. Easy right?
Happy coding!
Leave a Reply