#vinkesh

1 messages · Page 1 of 1 (latest)

ionic scarabBOT
crimson sandal
bright river
#

I don't access to stripe dashbord

crimson sandal
#

Do you have the charge id?

bright river
#

But i can give response

#

No such charge: 'ch_3Lj3HmLK3iTU9phi1h0X1rZc'

#

although this charge is captured

#

@crimson sandal will this help?

crimson sandal
#

This charge belongs to acct_1HHv65LK3iTU9phi

#

Which account does your API key belong to?

bright river
#

same account

#

when user tried to pay second time then goes through

#

and our system gets update for invoice paid

#

But it show that customer charged once according to our application But actually twice due to this

crimson sandal
#

This error usually throws when you use API key from different account

bright river
#

this is the code block

#

var service = new ChargeService();
var charge = await service.CreateAsync(options);
if (!string.IsNullOrEmpty(charge.Id) && charge.Paid == true)
{

                    var capturedCharge = await service.GetAsync(charge.Id);

                }
crimson sandal
#

Do you use test-mode API key to access ch_3Lj3HmLK3iTU9phi1h0X1rZc?

bright river
#

So there is no chance to different api keys

crimson sandal
#

ch_3Lj3HmLK3iTU9phi1h0X1rZc is in live mode

bright river
#

yes

crimson sandal
#

If you use test-mode API key to access ch_3Lj3HmLK3iTU9phi1h0X1rZc, it will throw this error as well

#

live mode charge can only be accessed with live mode API key

bright river
#

yes

#

I know that's why I m confused that how its happening

crimson sandal
#

The code itself looks fine

#

The issue is likely with your API key usage

#

Does your code use sk_test_... as an API key when retrieving the charge?

bright river
#

api keys are stored in azure vaults

#

we are getting those from there

#

as we have multiple account

crimson sandal
#

Since you are unable to provide the request ID, I can't tell where which API key you access the ch_3Lj3HmLK3iTU9phi1h0X1rZc from

#

The error is usually due to using API key from account A and trying to access charge from account B