#kirito

1 messages · Page 1 of 1 (latest)

next briarBOT
delicate urchin
#

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

dusty quiver
#

Yes I dont know why even though I pay from my app the same way I doin test mode, and I checked my keys

delicate urchin
#

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?

dusty quiver
#

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.

delicate urchin
#

You may need to look into what happens when you submit payment info. It doesn't look like it ever makes it to Stripe

dusty quiver
#

yes that is the problem but why it does in test mode that is what I can't figure out

delicate urchin
#

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

next briarBOT
dusty quiver
stone obsidian
#

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?

dusty quiver
#

How can I find it

stone obsidian
#

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.

dusty quiver
#

{
"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"
}
}

Learn more about error codes and how to resolve them.

#
  "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

stone obsidian
#

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.