#shayan-shokat_code

1 messages ยท Page 1 of 1 (latest)

cold riverBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1300437628855779389

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

rocky meadow
#

Can you share more details about the issue please ?any error message/stacktrace ?

nimble crest
#

this is the IOS code being used:
let paymentIntentParams = STPPaymentIntentParams(clientSecret: clientSecret)
paymentIntentParams.paymentMethodParams = STPPaymentMethodParams(affirm: STPPaymentMethodAffirmParams(), metadata: [:]) STPPaymentHandler.shared().confirmPayment(paymentIntentParams, with: self)

and there is no specific error in console but only this log is printing:

LOG ANALYTICS: stripeios.paymenthandler.confirm.finished - [(key: "status", value: "failed"), (key: "intent_id", value: "pi_3QDkjmJDsF3FhY2a0ZxTpqXz"), (key: "error_type", value: "invalid_request_error"), (key: "error_code", value: "")]
Payment failed: There was an unexpected error -- try again in a few seconds

#

can you clarify if the payment intent is supposed to be created in this way?

rocky meadow
#

Checking...

#

Usually, you can narrow the Stripe APi response using your dashboard

#

For example, accoring to this requestid req_CKVYNupU7OlPEC

#

Here is the error message:

Affirm payment does not support shipping country as US, it only supports CA.

#

You need to update the shipping country

nimble crest
#

oh, thanks for this, I wasn't checking logs from there
but one other question, it's showing usd and cad, both are supported

rocky meadow
#

The error message, is regarding the Shipping Country and not the currency.

cold riverBOT
nimble crest
#

if it won't be working for US users?

patent edge
nimble crest
#

got it, thanks a lot @patent edge and @rocky meadow