Skip to content

Commit

Permalink
set Stripe sub inline to prevent duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanckulp authored Nov 16, 2023
1 parent 04258f9 commit 396cf59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/billing_portal_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def new

# can add more checks, just inspect the 'session' and 'session.customer_details' object
if session.status == 'complete'
current_user.delay.set_stripe_subscription
current_user.set_stripe_subscription
redirect_to dashboard_index_path, notice: 'Your account is now active!'
else
redirect_to subscribe_index_path, alert: "Please subscribe to continue."
Expand Down

0 comments on commit 396cf59

Please sign in to comment.