Hi, I’m integrating Stripe with Bubble using API Connector to retrieve invoice details.
I followed Bubble’s video course tutorial that shows the ‘charge’ field is returned after initialized the Retrieve Invoice API call.
However there’s no ‘charge’ field in my returned values as in the course. Please advise if there’s any guidelines to setup?
Yeah, it doesn’t return that directly. You’ll need to save the Payment Intent id from the invoice response and retrieve the Payment Inent to get the latest charge.
I believe you would have sorted this , but for others that may have this same problem , because the chargeID was always returned before .
This is the documentation you need :
Create a New API Call called Payment Intent , then go to your stripe sandbox and click one of the product , (make sure it is also the product used for subscripton and invoice id api call ) then copy the Payment ID starts with “pi_” paste it in your Payment Intent API referenced above in that link , uncheck private and initialise , I set mine to data..
So on the Payment DB which has Charge ID field , Get external data from API - and select the above screenshot , that is the charge ID(latestChargeID)…
You can go further also to retreive Charge ID - by using the APi call
GET /v1/charges/[CHARGE_ID]. incase you want to have a receipt url for downloads