#anony_cause

1 messages · Page 1 of 1 (latest)

sly knollBOT
vivid shore
#

Hi there, can you share with me the relevant code?

merry hazel
#

So after I generate payment intent when I try to confirm the payment I am getting errors

confirmPayment(secret, {
paymentMethodtype: 'Card',
paymentMethodId: paymentId
}).then(value => {
console.log(value)
if (value.paymentIntent) {
setTimeout(() => {
NavigationService.navigate('PaymentSuccessScreen', {'success': true});
}, 3000);

  } else {
    console.log('error here')
    showMessageToUser({
      title: 'Error',
      message: 'Oops, we encountered a problem, please try again.',
      notificationType: NOTIFICATION_TYPE.ERROR
    });
  }
})
.catch(e => console.log('e', e));
vivid shore
#

Did you customer complete the card details when this method is called?

merry hazel
#

Let me try this approach and get back to you