#mattwt - 3ds message

1 messages · Page 1 of 1 (latest)

median spade
#

Hey can you share your full code. Not sure I understand completely

feral needle
#
this.stripe.confirmCardSetup(response.data.client_secret, {
  payment_method: {
    card: this.elements.cardNumberElement,
  }
}, {
  handleActions: false
}).then(this.setOutcome);



 setOutcome: function (result) {
      if(result.setupIntent.next_action && result.setupIntent.next_action.type === 'redirect_to_url') {
        .... show my message to the user then handle next_action
      } else {
 ...
}```
#

.... show my message to the user "then handle next_action" <- does stripe have a JS function to handle the popup (I had to pass handleActions: false to confirmCardSetup so that I can display my message before stripe handles the next action (3d popup)

median spade
#

Ah ok I see now