Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Only live keys can access this method

I am trying to take a reference of bank account token with createExternalAcccount method using stripe with node.js by using stripe test account. I get error like "Error: Only live keys can access this method."

stripe.accounts.createExternalAccount(
  'acct_**************Wu',
  {external_account: 'btok_**********************pw'},function(err,account){
    if (err) throw err;
    console.log(account);
  }
);
like image 619
user3484089 Avatar asked Mar 07 '26 12:03

user3484089


1 Answers

If you want to use a real account for real transactions, you'll need to use your live mode keys (you're currently using your test mode keys).

If you want to test bank account (ACH) transactions in test mode, you should see this guide.

like image 124
taintedzodiac Avatar answered Mar 09 '26 04:03

taintedzodiac



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!