#shayan-shokat_code
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Can you share more details about the issue please ?any error message/stacktrace ?
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?
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
oh, thanks for this, I wasn't checking logs from there
but one other question, it's showing usd and cad, both are supported
The error message, is regarding the Shipping Country and not the currency.
if it won't be working for US users?
Hi there ๐ jumping in as my teammate is stepping away soon.
That is correct. Affirm only supports domestic transactions, so you can only sell to customers in your country:
https://docs.stripe.com/payments/affirm#:~:text=Affirm only supports domestic transactions%2C meaning you can only sell to customers in the same country as your business
got it, thanks a lot @patent edge and @rocky meadow