#Chadiv

1 messages · Page 1 of 1 (latest)

grave ravenBOT
quick plinth
#

This usually means that the account of your API key trying to access to customer object from different account

#

API key can only access the objects from the same account

night arch
#

Yes

#

Si how i can resolve it

#

@quick plinth

quick plinth
#

You should create the customer object with the API key from new account as you can't access the customer object from old account

night arch
#

But i have a lot of customers

#

And when i create account on my website i got this

quick plinth
#

This is the same issue!

night arch
#

Yes

quick plinth
#

You can't access any object including customer and payment method with API key from another account

#

I'm afraid there is no way you can access objects with API key from different account. You could only create customer and collect payment method on the new account again

night arch
#

But before i changed the api key

#

It was working lol

quick plinth
#

It should work since the API key before changing belonged to old account and the objects are from the same old account

night arch
#

No

#

I just created the website

#

And put à fresh stripe acc

#

And how other people do

#

Lol

quick plinth
#

You can't access the objects from different account's API key

night arch
#

Im on webphone

#

I know

#

But i got the issue

#

Even when create new customer on my website

quick plinth
#

I would need the request ID (req_xxx) to check which account where you created the object and the API key you tried to access the object.

night arch
#

pk_live_51K5CW0HEu0SN92aHYDKmriTMl36syJBIAlGUHmOUYt2QkUw9x86hkkjm7kS80FAuE45miEmAF9YDz8qJpzI1x3MU00XbOUzUCZ

quick plinth
#

This public key belongs to acct_1K5CW0HEu0SN92aH whereas cus_N6LZZbPw6jyenS is from acct_1ML7LYKgSGprvnog.

#

Which account is the new one?

night arch
#

Yes

#

Naokraft

#

But the problem is the same

#

When i create customer

#

If i follow you you mean that nobody can sell lol

quick plinth
#

Your customer is created on the old account. Could you check your secret key and ensure it's set to the new account's, so that the customer can be created on the new account?

night arch
#

Oh yes

#

But it’s the same lol

quick plinth
#

What's the same?

night arch
#

If I put new one

quick plinth
#

Both public and secret keys should be set to new account's

night arch
#

It’s not new or old

#

Just 2 differbets

#

But if I put other keys error will be same

#

Haha

#

I see that the customer are created

#

But payments aren’t captured

quick plinth
#

Can you share the payment intent ID (pi_xxx) that is not captured?

night arch
#

How

quick plinth
#

Let's step back a bit

#

When you said "payments aren't captured", do you mean above error or the payment intent status is in requires_capture?

night arch
#

No i got this

#

When pay

#

And nothing in stripe payments

quick plinth
#

Can you copy and paste the payment method ID (pm_xxx) in text from the screenshot, so that I can have a check?

night arch
#

'pm_1MPgz5HEu0SN92aHsobMHIRT'

quick plinth
#

Strange that I'm unable to find pm_1MPgz5HEu0SN92aHsobMHIRT at my side. Could you share how you create the payment method (pm_xxx)?

night arch
#

I go on my website

#

Created customer

#

Then pay

#

And got that when using old customer account

#

If u want I give you the wabsite link

#

Or ftp accesss

quick plinth
#

I managed to find the correct payment method ID: pm_1MPgz5HEu0SN92aHsobMH1RT

the last 3 characters is 1RT not IRT

#

Looking into it now

night arch
#

Ah ok

#

I copied the screen

quick plinth
#

Do you implement Stripe integration yourself or use third party plugin?

night arch
#

Nuxt

#

I think

#

But before I change key it was working

night arch
quick plinth
#

Could you ensure that you set your secret key to the one from acct_1K5CW0HEu0SN92aH (naokraft)?

night arch
#

Oh yes

#

On my phone i cant

#

But I can give u plesk or ftp

#

And directory

quick plinth
#

I don't have access to secret keys. You can only configure the secret key yourself

night arch
#

I cant login

#

On app

#

Ok

#

I have acess

#

So if I want to use naokraft

#

Account

#

I need to change secret or public ?

#

Oh

#

I think it was that

#

I put the good one

#

I have to restard node yes ?

quick plinth
#

You'd need to change the secret key to the one from naokraft

night arch
#

Yes

#

I did it

quick plinth
#

Please do not share the secret key in this public channel as it's visible to everyone.

night arch
#

But as I’m not dev

quick plinth
#

Please delete the screenshot

night arch
#

I just have to restart node ?

#

To rebuild ?

quick plinth
#

Yes, you likely need to restart in order to pick up the new credentials

night arch
#

On phone I can’t

#

.

#

Can you log

#

Go in node

#

And click restart

quick plinth
#

I'm afraid I'm not unable to do that