Forum Academy Marketplace Showcase Pricing Features

Has anybody integrated Stripe payment gateway WITHOUT plugins? only using API connectors

Hello everybody,
I am running into another weird issue. I am trying to capture the checkout session id (need it later to retrieve payment intent linked to the session that was created and capture funds).
It is however not being saved to a text field in my database. And it should, even in the step-by-step debugger it is being shown as saved. But the field in my database remains empty. Has anyone encountered this problem and solved it?
Thank you!

Are you using API or plugin? If API make sure you capture from redirect URI before wiping the URL clean.

Am using the API. I finally figured out, what the problem was:

I am using a Transactions-Thing to collect necessary information and link in it the relevant Booking (another thing). In the malfunctioning workflow (create booking → start backend workflow (thereby creating Transaction) → start Stripe session → Make changes to Transaction (add sessions id) → open external page (stripe url)), I told Bubble to make a change to the Associated Transaction of a Booking that is being created as the first thing in the workflow. The transaction is then being created in the backend workflow that is initiated immediately in the second step. Apparently there isn’t enough time or some other issue, whereby the thing that was created in the backend workflow is not accessible to a change in step 4 (following the stripe session start in step 3).

I solved it by creating an empty transaction before starting the backend workflow. The backend workflow now changes and no longer creates the transaction. The result of the Stripe session can now be successfully written to the transaction. (New workflow: (create booking → create transaction → start backend workflow (make changes to created Transaction) → start Stripe session → Make changes to Transaction (add sessions ID) → open external page (stripe url)).

I hope that makes it comprehendible :wink:

I have successfully integrated Plaid Link, plaid webhooks with (almost) no plugins + the API connector.

It’s probably the case. You can simply use the plugin WAIT to added some time. Creating the transaction before is also a way I’m using everywhere.

1 Like

I’ve run into the next problem and maybe you friendly people know an answer:

Is there a way to retrieve the amount of fees that Stripe charged via an API call? I am specifically not meaning the fees that can be charged as part of connect, but the payment to stripe for using the service. I can’t seem to find an info in the paymentIntent or sessions object.

The reason I need it is that I need collect a deposit and return it, if everything went well. Given I can only capture charges for up to 7 days, my current setup is to charge both a fee for my service and the deposit and then refund the deposit minus the amount of stripe fees.
If anyone has come up with a better idea to introduce a deposit system, I’d be very keen to hear ideas!

There are no fees for using stripes api or webhooks, the business model for stripe is to collect 2,9% ( some countries has different fees) + 0,25 cents for transactions

they only take about 1.25ish from a 50$ roadside service i offer so its not bad at all