I’m trying to create an app that allows users to log into their Stripe account and every time an invoice is generated in their Stripe account to automatically bring it into my app.
I have managed to create the login and payment system with Stripe for my app (users will have to pay an amount to access my app dashboard).
How can I give them the ability to log into (or link) their Stripe account so that my platform can “pull” the last generated invoice from their Stripe account?
Also, can I temporarily save the invoice somewhere?
What I need is for each user’s invoice to be transmitted to another system (which I will connect via an API to my platform). That system requires the XML version of the invoice from Stripe.
Basically every time an invoice is created in Stripe, my application would have to capture the invoice, convert it to XML and send it to another system connected via API.
No, this use case wouldn’t be supported by the customer portal. You can set up a webhook to automatically receive new invoices but they’d be sent in json. You’d then need to handle the conversion to XML before uploading it to the other system
Webhooks are very easy to setup and Stripe has really good documentation and support. You should be able to find videos on youtube showing how to setup a webhook. It may be for a different event type than what you need, but it will still translate to your use case.
@boston85719 also has a paid course although I can’t personally vouch for it as I haven’t signed up:
@bgdananghelina my course does cover how to setup and utilize webhooks in the Bubble application. It also covers a large part of the Stripe API in detail so as to prepare students to implement the API calls in the course and any other API call Stripe provides that the course doesn’t cover in details.