#aminshoukat

1 messages ยท Page 1 of 1 (latest)

night stratusBOT
ornate elbow
#

Hi ๐Ÿ‘‹ every account has a live mode, I would suggest trying to use your live key to make the request to delete the Connected Account. You should be able to get that key from your the dashboard here:
https://dashboard.stripe.com/apikeys

radiant willow
#

I already tried.
I am getting this when using live key:
The account *** was a test account created with a testmode key, and therefore can only be used with testmode keys.

#

getting error with both, Test key and live key. What's the issue I don't get it.

ornate elbow
#

Hm, can you share the ID of requests that returned those errors?

radiant willow
#

Which ID ?

ornate elbow
radiant willow
#

sure.

#

Test mode: req_uex2FVfqbbvU4o

#

Is there anything else you need?

ornate elbow
#

Thank you, and can you confirm whether your request is using the stripeAccount header?

radiant willow
#

I am using PHP

#

Using Github PHP library provided by stripe.

#

$stripe = new \Stripe\StripeClient( $stripe_api_key );
$response = $stripe->accounts->delete(
'acct_1Msd5mBZiAWYKIvr',
[]
);
var_dump($response);

tacit tulip
#

๐Ÿ‘‹ hey there, giving @ornate elbow a hand with this and looking at things

radiant willow
#

Good. Can you please solve this issue?

tacit tulip
#

I'm looking at the account and example request and will let you know what i find ๐Ÿ‘

radiant willow
#

Do you need anything else from me?

#

I can share.

tacit tulip
#

How was this account created? I don't see any matching API requests to create the account in your platform logs.

#

If this was created directly via the dashboard, you won't be able to programmatically delete it