New Plugin - Stripe Checkout for Connected Accounts

Hi Jared - I am pretty sure that the ‘checkout.session.completed’ webhook gives you customer ID–don’t think you need a separate API call.

Yes, it does give the ID, but it is not passing the email address the user entered in stripe checkout. I had to setup another API call to access the email from the customer ID provided in the checkout.session.complete webhook. In my application, I don’t want the user to enter their email address twice, so I’m grabbing it from Stripe checkout and creating a user account with temp password for them automatically upon successful checkout.

1 Like

awesome! nice work!

@jakesing I’m live and it seems to be working for the most part, but I’m concerned because I had a customer post this error message:

Any idea what this is or how to determine how often people are seeing this message?

Hi Jared - I honestly have no idea, I’m not getting much info from that error message. Trying to decode it, it looks like there was some package that tries to run the JS code in the plugin, using Cloudfront (an AWS service), which makes me think this was a Bubble problem, not a plugin problem. @emmanuel or someone at Bubble, is there a way you could help us understand this error?

We’ll probably need a bug report with reproduction steps to be able to look into it.

Thanks @jakesing and @emmanuel It appears it was a temporary time error (hopefully)… that’s all the info I received from the customer. I checked the logs at the time of the event and didn’t see any errors. I’ll let you know if it continues in a reproducible manner via bug report.

Hey !
Thanks a lot for this !

That’s completely true this piece was missing !
There’s a lot of stuffs available in different plugins but often made for a specific and simple usecase.
It is quite simple to use the Bubble API connector and Stripe docs to make some call and webhooks (once you have learn and understand the logic ! :smile: )

But this part was really missing and you can’t do anything else if you are not a devlopper in my opinion.
I had to test it a few times , but now it works perfectly…

Thanks a lot you made my day !

1 Like

Hi !
Quick question
How did you make this dynamic thing for your publishable key (in number 2) ?

Hey! Sorry, just saw this–the dynamic field comes from my app database. I figured it would be better to have it hidden in the database, so I set up option set called ‘Stripe Keys’:

You can do the same and then in ‘modify attributes’ add your own keys.

Thanks !
Is this secure ?
As far I understood Option sets should not contain this kind of info as they are accessible through the entire app, and all option sets possible value are visible by any user ? I may be wrong
What’s your opinion ?

1 Like

I was so excited about this plugin…I was trying to integrate checkout with my app and I found this post…
although I got this error:

image

I also noticed I cannot upgrade to version 1.3.0…

am I using the wrong version? or doing something wrong? @jakesing

now I’m getting ,
image

for my checkout session API I use my secret key, then I changed it to publishable key but still getting the same error, any ideas? @jakesing @chris.anderson

@jakesing - I am getting the following error when landing on the Stripe page. Was wondering if you know how to resolve? Nothing noted in my logs in Stripe or Bubble.io.
image

HI there,
Anyone know how to set up a value for API call for : line_items[][image]=<items_image>?

Hi guys, I got a question.
I am using this plugin so when the user does a payment stripe knows which client ID the payment is from.
The problem I am having is that when the user checks out and creates the payment, the client ID is not stored in the bubble database. I figured I could do this through a webhook but I didnt manage. How do you guys do it?
My train of though was first time customer does a payment - it creates customer ID - its stored in bubble database- next time user makes a payment it knows who the customer is.

Any ideas? I did the api connector, the webhook, etc… everything works but I cant figure out how to do that because every time a user makes a payment, even if its the same user with the same email, stripe creates another customer ( different ID, same email).

Any ideas?

Thank you for your help.

@jakesing

I have the same error, did you fixed it?
In the stripe logs it shows 200 OK but it doesnt load the checkout page

Hi @jakesing Did you make that extra plugin which includes creating a checkout session? Or are you available for a short help session to get that implemented?

/Andreas

@ramon.sicre How did you manage with webhooks?

Hi @natserrano , I’m having the same exact issue. Did you figure this part out?