Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

251
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda