#vm1172
1 messages · Page 1 of 1 (latest)
How can I help?
Following up from this earlier thread: https://discord.com/channels/841573134531821608/1158801657296076810
LOG {"paymentIntentId": ""}
ERROR {"error": undefined}
ERROR error {
"error": {
"type": "StripeInvalidRequestError",
"raw": {
"message": "Unrecognized request URL (POST: /v1/payment_intents/). If you are trying to list objects, remove the trailing slash. If you are trying to retrieve an object, make sure you passed a valid (non-empty) identifier in your code. Please see https://stripe.com/docs or we can help at https://support.stripe.com/.",
...
}
this is the error im seeing. the paymentIntentId is empty when I'm creating payment intent
hi hanzo
this does not occur the second time. meaning on first trigger the payment intent is empty, but when i close the Apple Pay payment sheet and re-open it again by pressing onPress it works as intended (populates with a paymentIntent.id)
The object being logged there, it seems like its coming from your own server.
this does not occur the second time. meaning on first trigger the payment intent is empty, but when i close the Apple Pay payment sheet and re-open it again by pressing onPress it works as intended (populates with a paymentIntent.id)
It sounds like the first request to your backend is failing some how, your server should have some logs for this
understood (and that makes sense), but both the first paymentIntents gets successfully created and is visible on the Stripe Dashboard
I'll re-check my BE logs though
yeah because the logged object has paymentIntentId key which isn't really something stripe responds with. It must be coming from your own code.
correct, paymentIntentId is mine. on the BE, I'm calling stripe.paymentIntents.create(), and then returning the specific information like so to ingest on the FE
return { paymentIntentId: paymentIntent.id, clientSecret: paymentIntent.client_secret };