Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

250
Views
Transfering money from one stripe account to another in test mode

I am having difficulties when I try to apply the transfer method so I need your help.

What I want to do is transfer money [IN TEST MODE] from one stripe account to another, I did the exact thing that was written in the documentation looks like this:

const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY, {
  apiVersion: '2020-03-02',
  maxNetworkRetries: 2,
});

exports.handler = async (event) => {
  try {
    const paymentIntent = await stripe.paymentIntents.create({
      amount: 100,
      currency: 'eur',
      payment_method_types: ['card'],
      transfer_group: '{ORDER10}',
    });

    // Create a Transfer to the connected account (later):
    await stripe.transfers.create({
      amount: 70,
      currency: 'eur',
      destination: '{{ACCOUNT_ID}}',
      transfer_group: '{ORDER10}',
    });

   


    return {
      statusCode: 200,
      body: JSON.stringify(paymentIntent),
    };
  } catch (error) {
    console.log({ error });

    return {
      statusCode: 400,
      body: JSON.stringify(error),
    };
  }
};

What I am getting is an error with saying there is no such destination, which means that the account ID is not available.

I got my other stripe account's ID with the curl command:

curl https://api.stripe.com/v1/account -u {{SK_TEST_KEY}}

this gave me the ID and that's what I pasted in the {{ACCOUNT_ID}} field.

What am I doing wrong? Is it something that this thing can not be done in test mode?

Or somehow I need to connect both of my stripe accounts??

Thanks in advance

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I created an account on my dashboard stripe page, the main thing was that it has to be a standard account, filled in with some dummy data which I found thanks to Jonathan Steele, after that the transfer worked.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!