From b387631e242803f57d532a3df8be84c34c06713c Mon Sep 17 00:00:00 2001 From: karlr-stripe <38090489+karlr-stripe@users.noreply.github.com> Date: Fri, 2 Aug 2019 18:51:48 +0100 Subject: [PATCH] add customer ID as param for create_setup_intent (#64) --- web.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/web.rb b/web.rb index 04664d5..c462198 100644 --- a/web.rb +++ b/web.rb @@ -152,6 +152,7 @@ def create_customer payment_method: payload[:payment_method], return_url: payload[:return_url], confirm: payload[:payment_method] != nil, + customer: payload[:customer_id], use_stripe_sdk: payload[:payment_method] != nil ? true : nil, }) rescue Stripe::StripeError => e