Stripe Auto Charge Invoices

Hey guys, I have a scenario that searches for overdue invoices and sends a client a reminder about paying those invoices.

I am trying to find a way to autocharge these invoices to clients when the due date was 5 days ago or more.

Obviously, I have the client’s consent to do so, but I cannot find a way to do that using the Stripe module. Anyone has done anything similar and can help here? Is that even possible?

Okay so I figured out a way to do that, but it went terribly wrong, I think I am missing something, anyone can check, please?

Welcome to the Make community!

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the contents as a text file, and upload it here into this discussion thread:
Screenshot_2023-10-06_141025

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes

You can probably achieve it using custom API calls because they are more capable than using the premade modules:

Stripe’s API doc is really great, you can understand it fast:

I almost never built something using the standard Stripe modules as they are too limited.

2 Likes

Thanks for the suggestion!

I never used these API calls, I always found them complicated, but it seems that it’s going to be worth a shot!

I have checked the link you provided, but I am not sure what modules I should be using inside Make, I’d love a little bit of guidance if you are so kind as to provide it.

Hey @RaviTharuma, following your advice I did create a new scenario. Basically what I am trying to do is every 5, 7, and 9th of each month, check what invoices are outstanding with a due date of TODAY or earlier than today, and if there is any, go on and auto-charge the client.

I noticed that when the card is declined for any reason, the last module goes into an error, so I set an error handler that will handle the error when the card is declined.

Now, I would like to double-check that this works correctly before start charging clients, would you mind confirming I did this right, also, is there a way that I can test it without triggering anything on Stripe in real life?

Attached are some screenshots to illustrate what I did:



1 Like

You can test it by using the test mode API keys in Stripe.

Never develop anything in there using the regular API keys.
Always use the Stripe sandbox.

2 Likes