Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit b387631

Browse files
karlr-stripemshafrir-stripe
authored andcommitted
add customer ID as param for create_setup_intent (#64)
1 parent df99f57 commit b387631

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def create_customer
152152
payment_method: payload[:payment_method],
153153
return_url: payload[:return_url],
154154
confirm: payload[:payment_method] != nil,
155+
customer: payload[:customer_id],
155156
use_stripe_sdk: payload[:payment_method] != nil ? true : nil,
156157
})
157158
rescue Stripe::StripeError => e

0 commit comments

Comments
 (0)