Skip to content

Commit

Permalink
allow_promotion_codes for checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
yshmarov committed Mar 11, 2021
1 parent a43e7c8 commit a094810
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/checkout_controller.rb
Expand Up @@ -5,6 +5,7 @@ def create
customer: current_user.stripe_customer_id,
payment_method_types: ['card'],
line_items: @cart.collect { |item| item.to_builder.attributes! },
allow_promotion_codes: true,
mode: 'payment',
success_url: success_url + "?session_id={CHECKOUT_SESSION_ID}",
cancel_url: cancel_url,
Expand Down

0 comments on commit a094810

Please sign in to comment.