Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed May 3, 2020
1 parent 13ccb12 commit e4bda0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit e4bda0d

Please sign in to comment.