#vinkesh
1 messages · Page 1 of 1 (latest)
Can you share the request ID (req_xxx) that throws the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
I don't access to stripe dashbord
Do you have the charge id?
But i can give response
No such charge: 'ch_3Lj3HmLK3iTU9phi1h0X1rZc'
{ "error": { "code": "resource_missing", "doc_url": "https://stripe.com/docs/error-codes/resource-missing", "message": "No such charge: 'ch_3Lj3HmLK3iTU9phi1h0X1rZc'", "param": "id", "type": "invalid_request_error" } }
although this charge is captured
@crimson sandal will this help?
This charge belongs to acct_1HHv65LK3iTU9phi
Which account does your API key belong to?
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
This error usually throws when you use API key from different account
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);
}
Do you use test-mode API key to access ch_3Lj3HmLK3iTU9phi1h0X1rZc?
So there is no chance to different api keys
ch_3Lj3HmLK3iTU9phi1h0X1rZc is in live mode
yes
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
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?