Stripe Bubble API and fake email (User ID)

Hi,

To protect my users I use a UserID to log in and replace the email field in the user with @fake-web.com.
Up till now that has worked well but I new want to use stripe and the fake email is being passed to stripe via its plugin when I try to set up a subscription for a user.

Several fields dont appear to be working properly as I cant find the Client ID supposedly in Settings\Connect Settings.

One method that occurred to me was to create a new user, a copy of the current user but with the correct email. But I am hoping there is a more elegant way.

Chat GPT suggested changing the JS directly and adding a use this

// Subscription Workflow
Create a new Customer in Stripe: Email = Current User's Stripe Email
Subscribe Current User to Plan: Plan ID = Your Plan ID

but I didnt really understand this.

I would be grateful for any help/suggestions. Thanks in advance

Tom

GPT is just saying create a new field called “stripe email” to store their real address.

Thanks for the quick reply, Yes that bit I understood it was calling the api direct in js I didnt really want to do.

I am really hoping I can do this using the standard workflow calls

You’ll have to use the stripe.js plugin, bubble stripe uses the standard email field.

Stripe.js plugin in better in the majority of cases anyway. Bubbles plugin is convenient but kind of lacks in feature set.

Thanks again, was unsure so I watched a video course on Youtube. It shows how to use a different email with JS 2.
Pt 1 Stripe Subscription Payments in Bubble - Conditional Button & Payment Page

1 Like

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