Skip to content

Commit

Permalink
Merge pull request #109 from 5andu/add-customer-email-to-stripe-billi…
Browse files Browse the repository at this point in the history
…ng-portal

Add customer email to billing portal for improved UX
  • Loading branch information
ryanckulp committed Nov 11, 2023
2 parents 23f6aea + 327c3c3 commit 399cdd6
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 399cdd6

Please sign in to comment.