[Help with] Stripe Automatic Invoice Retrieval in my app

Hello!

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?

Can you help me please?

You can use the customer portal to allow customers to manage their accounts and view/download their invoices. Is that what you’re looking for?

Hi, Alex,

Thank you very much for your response!

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.

Can I do this with Customer Portal, do you know?

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

Do you have any recommendations on where I can learn how to do this?

I’m completely new to Bubble.io and quite new to working with webhooks.

It would help me with some resources as I can’t find any use cases similar to mine on the internet.

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:

1 Like

@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.

Thank you!

This topic was automatically closed after 70 days. New replies are no longer allowed.