Abandoned payment processor setup with Stripe free trial #570
Unanswered
computer-smile
asked this question in
Q&A
Replies: 1 comment
-
@computer-smile Curious to know if you found a flow that works for you? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm creating my Stripe free trial experience. Here is what I have so far.
Use this to give them access to features.
Just clicking the button from
app/views/settings.html.erb
creates the stripe payment processor and makes it the default.stripe.customer.subscription.created
webhook to cancel the trialPay::Subscription
created when the user signs up.Pay::Subscription
that was created for the trialdefault: false
Pay::Customer
withfake_processor
created for the trialPay::Subscription
to use moving forwarddefault:true
Pay::Customer
to be used moving forwardThis feels ok as a strategy for free trials with Stripe. It's loosely recommended here #563 (comment). #563
2 questions:
Has anyone found a better strategy they like? Possible I may be misunderstanding some of the Pay architecture.
If a user abandons checkout in step 2 a
Pay:Customer
will have been created just from clicking my button inapp/views/settings.html.erb
viacurrent_user.set_payment_processor :stripe
. So, when they abandon they'll have a new default payment processor (stripe) with no active subscription. And the fake trial and its helper methods will no longer work. So they can get themselves in trouble.Is this the wrong approach? Did I misunderstand the docs for this action/flow?
Thanks for taking a look. Any recommendation or insight is welcome.
Beta Was this translation helpful? Give feedback.
All reactions