Skip to content

Commit

Permalink
Add customer email to billing portal for improved UX
Browse files Browse the repository at this point in the history
  • Loading branch information
5andu committed Nov 10, 2023
1 parent 23f6aea commit 327c3c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/billing_portal_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def create_subscription
session = Stripe::Checkout::Session.create({
ui_mode: 'embedded',
customer: current_user.stripe_customer_id,
customer_email: current_user.email,
allow_promotion_codes: true,
payment_method_types: ['card'],
line_items: [{
Expand Down

0 comments on commit 327c3c3

Please sign in to comment.