#jigar-country

1 messages · Page 1 of 1 (latest)

tall raft
#

hi there

#

@limber blade let's talk here instead

#

are you the developer building the payment form that you posted in the screenshot? if so, can you share the code you wrote?

limber blade
#

Hi karllekko,
Here is the method which is called for payment confirmation.
async confirmPayment(clientSecret, billingInfo) {
let result = await this.stripe.confirmCardPayment(clientSecret, {
payment_method: {
card: this.card,
billing_details: {
name: ${billingInfo.first_name} ${billingInfo.last_name}
}
},
setup_future_usage: 'off_session'
})
if (result.error) {
// Show error to your customer
this.$refs.card_errors.textContent = result.error.message
this.loading = false
return false
} else {
if (result.paymentIntent.status === 'succeeded') {
return result
}
}
},

tall raft
#

hmm, not sure how that would cause that error, since you're not passing the billing address country there.

limber blade
#

Here is the request ID: req_t2PgJIxRGod6ni

foggy ledge
#

Hi 👋 thank you, I'm pulling that up on my side.

#

It looks like when that Payment Intent was created, a Customer ID was provided so that Customer was associated with it. That Customer has an invalid address and I believe that's what is blocking this, could you try updating the address on that Customer record and then try to confirm the payment again?