If the second action subscribes the user to a single plan that’s what you’re trying to achieve. If you want to unsubscribe the user, just use a cancel plan action.
if a user is signed up to a plan twice and wishes to update it’s subscription to one, we have to completely cancel the plan and re-subscribe with the revised quantity of 1?
if so, this will prompt the user to re-enter the CC details again, which is not ideal, specially when the user is removing a subscription (not adding), it doesn’t make sense to prompt the user to re-enter details again.
I was under the impression that if the user is already signedup to a plan, executing the ‘subscribe user to a plan’ again with a revised quantity parameter simply updates the subscription, is that not the case?
In my case, I have no requirement to create more than 1 plan. And I am happy to cancel the user’s prior plan before “updating the subscription” to a new plan object with a revised quantity. But would like not to prompt user to re-enter CC details again.
Further reading the Update Subscription doco from Stripe API, if I understand it correctly, this can be achieved if the source parameter is passed, which is essentially the default CC details recorded at the original subscription.
can I confirm that the source is being passed when calling this from Bubble?
This would really stop me from pulling my hair out and avoid anyone else from doing so when they come across the same issue
This is the response I received from Stripe support when asked about splitting subscription payments.
Stripe support:
“You can definitely split the subscription payment between you and a connected account. You’ll want to do this by taking an application fee, where a certain percentage of the payment will go to your account (minus Stripe fees), and the rest will go to your connected account. If you’re doing this through the API, you would consult our docs ( Create a charge | Stripe Documentation ). However, since you’re using Bubble with Stripe, you’d have to check with them on whether this behavior is something they allow. You can send them the above link to make sure they know exactly what behavior you’re looking for!”