#alan.s.gonzaga

1 messages · Page 1 of 1 (latest)

rose needleBOT
warped solar
#

Hi 👋

Can you describe a question you have about integrating with Stripe?

#

Sorry, I deleted all data from test dashboard, on developers menu > erase all data.
After that, I checked id my publick key and client secret had changed, they didn't, so I beleive all my requests should still be working, like making new subscriptions, retrieving balances and so on.
But it didn't, I'm receving this error: The client_secret provided does not match any associated SetupIntent on this account., when I try to make a setupIntent
Quoting here for context. Let's talk in this thread

#

client_secret isn't part of your API keys

#

It's related to a specific Setup Intent

#

So if that Setup Intent does not exist then you cannot use it

sonic spindle
#

I'm receiving the fresh setupIntent:
"setup_intent": {
"id": "seti_1Ndg6MCAhz2l6jwo5lkOdObn",
"object": "setup_intent",
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
"client_secret": "seti_1Ndg6MCAhz2l6jwo5lkOdObn_secret_OQXACEf8xiOwlXytX0mgxGJZcrdjie0",
"created": 1691701742,
"customer": null,
"description": null,
"flow_directions": null,
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
"mandate": null,
"metadata": [],
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_options": {
"card": {
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"single_use_mandate": null,
"status": "requires_payment_method",
"usage": "off_session"
},

#

It is coming from my laravel application

#

It was working 5min ago before I deleted all data

#

After I get the setup intent from backend, I'm using it on stripe.js, and stripe.js is returning the error The client_secret provided does not match any associated SetupIntent on this account.

#

Are you there?

warped solar
#

Hi yes

#

There are a lot of people on this server. I can see the Setup Intent.

#

At what point does the error get thrown?

sonic spindle
#

When I try to load the payment Element

1 - I create the SetupIntent on my backend, and it is working fine as we can see
2 - then I call the stripe elements with the client_secret that I just got, and it give me error

warped solar
#

Okay you see that request log url in the second messagge? Can you copy the ID req_ and paste it here?

sonic spindle
#

req_m4OCssHkqEMboU?t=1691702504

#

17:42 it was working, look that before each get to elements/session there is a post to setup_intents.

#

I'm still doing this, as I show you the setupIntent I'm receiving.

#

but for some reason, the logs is not showing the post to setupIntent before the get to elements

#

But if I'm receiving the setup intent, and the log is not showing it in my account, where is my post going?

I triple checked already my keys, and I didn't changed it

warped solar
#

Okay wait... Can you share a Setup Intent ID that you just tried to test?

sonic spindle
#

Made it right now

#

seti_1NdgXKCAhz2l6jwoPsgiRRHN

warped solar
#

You have your API keys mixed up

sonic spindle
warped solar
#

The request that fails is being made by an API key that belongs to acct_1NcsuQHuw4gi37bQ but the Setup Intent is created with an API key that belongs to acct_1NL5P2CAhz2l6jwo

#

You are using keys from two different accounts

sonic spindle
#

but how?

#

can you check the keys?

#

the keys I'm using is the keys I can find on stripe dashboard

#

And like I said, I didn't changed the keys after I requested to delete all data from test dashboard

#

Well somehow I reset my caches here and it worked

#

dont know what happened but fine

#

Thank you friend