From e4bda0d4c5502ac6a174da4acb191154555dbe00 Mon Sep 17 00:00:00 2001 From: Alex Freska Date: Sun, 3 May 2020 10:34:15 -0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4888a20c..c20f0d34 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ stripe.confirmCardSetup(setupIntentId, { } }) .then(result => { - const setupIntentId = result.setupIntent.id, + const setupIntentId = result.setupIntent.id const paymentMethodId = result.setupIntent.payment_method // send the paymentMethodId and optionally (if needed) the setupIntentId @@ -150,7 +150,7 @@ new_customer = %{ email: email, } -{:ok, stripe_customer} = Stripe.Customer.create(customer) +{:ok, stripe_customer} = Stripe.Customer.create(new_customer) ``` Attach the payment method to the customer.