#kirito
1 messages · Page 1 of 1 (latest)
Taking a look now
It doesn't look like that Customer has a Payment Method attached yet, so there's not Payment Method to automatically charge for the new subscription
Yes I dont know why even though I pay from my app the same way I doin test mode, and I checked my keys
I don't see any indication that a Payment Method was ever created or attempted to be created. Did you enter some payment credentials during the payment flow?
Yes, in test mode it work with 4242424242424..., but when I switch my env public key, secret key, webhook key, it start workin the user and subscription is created, even the webhook work correctly, but the payment method doesn't.
You may need to look into what happens when you submit payment info. It doesn't look like it ever makes it to Stripe
yes that is the problem but why it does in test mode that is what I can't figure out
Not sure. Only you would be able to find the answer to that. Something changed somewhere (or didn't change when it should have), so you'll want to step through the whole process and add log lines to determine what's missing
here is the error I get : https://api.stripe.com/v1/payment_intents/pi_3MwU0IFeR0PUZyO70KsbwYXO/confirm
Hello! I'm taking over and catching up...
If you go to the Network tab of your dev tools and reproduce the error, can you give me the request ID (starts with req_) from the headers of one of those failed requests?
How can I find it
It's in the Network tab of your dev tools.
Go to that tab, reproduce the issue, find the failed request, look at the response headers of the request.
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such payment_intent: 'pi_3MwU7ZFeR0PUZyO711LwS6iB'; a similar object exists in live mode, but a test mode key was used to make this request.",
"param": "intent",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_hVSGnl5EiS6AmR?t=1681407586",
"type": "invalid_request_error"
}
}
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such payment_intent: 'pi_3MwU7ZFeR0PUZyO711LwS6iB'; a similar object exists in live mode, but a test mode key was used to make this request.",
"param": "intent",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_hVSGnl5EiS6AmR?t=1681407586",
"type": "invalid_request_error"
}
}```
req_hVSGnl5EiS6AmR
Thanks! Looking...
You're using a test mode key for that request. The error explains the issue: No such payment_intent: 'pi_3MwU7ZFeR0PUZyO711LwS6iB'; a similar object exists in live mode, but a test mode key was used to make this request.
It seems like you didn't switch to your live publishable key.