Skip to content

Commit

Permalink
Merge pull request stripe#54 from stripe/billfinn/support-receipt-email
Browse files Browse the repository at this point in the history
web: Add support for receipt_email
  • Loading branch information
billfinn-stripe authored Oct 2, 2023
2 parents c69ce21 + 49ba4ef commit 75c0f34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def validateApiKey
:currency => params[:currency] || 'usd',
:description => params[:description] || 'Example PaymentIntent',
:payment_method_options => params[:payment_method_options] || [],
:receipt_email => params[:receipt_email],
)
rescue Stripe::StripeError => e
status 402
Expand Down Expand Up @@ -200,7 +201,7 @@ def validateApiKey
end

setup_intent = Stripe::SetupIntent.create(setup_intent_params)

rescue Stripe::StripeError => e
status 402
return log_info("Error creating SetupIntent! #{e.message}")
Expand Down Expand Up @@ -320,7 +321,7 @@ def lookupOrCreateExampleCustomer
status 400
return log_info(validationError)
end

begin
location = Stripe::Terminal::Location.create(
display_name: params[:display_name],
Expand Down

0 comments on commit 75c0f34

Please sign in to comment.