Issue with Stripe: Subscribe the user to a plan

I’m using the Stripe plugin provided by Bubble.

I have two instances in my application where a user is registered which requires the user to subscribe to a plan.

In the first case, the Current User is subscribing themselves. This works fine.

In the second case, the Current User is subscribing someone else. Someone they supervise. This is not working.

Below is the detail of the work flow, and the specific Stripe action:


What I’m expecting to happen is when Step 7 of the workflow occurs, the user is taken to the Stripe website to enter their credit card information.

This only occurs when the box “Apply this action to the current user” is checked, but when this user is checked, the subscription is not applied to the desired user, but rather is applied to the Current User.

When the box “Apply this action to the current user” is not checked, the user is not taken to the Stripe website to enter their credit card information, and the following message is displayed to the console:

Clearly I’m doing something wrong, but I’m not seeing what it is.

Can anyone help me?

Hey @kevin4 :wave:

Which version of the plugin are you on? Checkout v2 or Checkout v3 (SCA Compliant)?

V3

I am not sure if this would work in v3. Unless someone else here knows the answer, I would try asking Bubble Support. Maybe @eve can chime in to let us know if it is something worthy of a bug report.

Hope that helps! :blush:

@j805 www.NoCodeMinute.com

For All Your No-Code Education Needs:

  • One-on-One Tutoring
  • eLearning Hub
  • Video Tutorials
  • No-Code Classes

For the record, I do not know how that Stripe action is supposed to behave when the box Apply this action to the current user is not checked, but I did figure out that in my app, that box needs to be checked.

I did previously have it checked, and things did not work right, but that was because other stuff was not done right>

So while this may in fact be broken, it’s not an issue for my app.

1 Like

Cool :+1:

I encountered the same issue 2 weeks ago - you have to “Sign up a user” instead of “create an account for someone else”.

The documentation doesn’t tell you that signing up a user also creates their stripe account in one swoop thus will take you to the credit card entry screen as you expect to enter in those credentials for the first time… whereas I believe creating an account for someone else only gets them their stripe account once they confirm their account (which can’t be done in a stepped workflow as the user has to enter their temp password… etc etc)

V3 works! Thanks fellas

As a follow up here, I finally added in a bug ticket for this - I cannot find a way with the V3 Bubble Stripe plugin for an account to be created for someone else then subscribe to a plan. It’s almost like the “Subscribed User” field doesn’t actually work and it’s always trying to apply to the current user.

Screen Shot 2021-03-12 at 12.00.19 PM

@w.fly
Did you find a solution to this problem? I have a problem similar to yours. I want to make someone who is not registered subscribe to the plan and then become a member, but is this possible with the stripe plugin?

@abdullah2 When I filed a bug ticket, Bubble informed me this was working as intended but agreed the messaging was a bit confusing.

The only way to get this to work is to use the workflow for “Sign up a user” – I can’t recall all of the details as this was a while ago.

@w.fly Thank you so much for the speedy reply. :clap:

1 Like