Skip to content

Commit

Permalink
Updated to use confirmCardSetup
Browse files Browse the repository at this point in the history
  • Loading branch information
adreyfus-stripe committed Nov 4, 2019
1 parent 78160fe commit 44f8072
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ var stripeElements = function(publicKey, setupIntent) {
var email = document.getElementById("email").value;

stripe
.handleCardSetup(setupIntent.client_secret, card, {
payment_method_data: {
.confirmCardSetup(setupIntent.client_secret, {
payment_method: {
card: card,
billing_details: { email: email }
}
})
Expand Down

0 comments on commit 44f8072

Please sign in to comment.