Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

181
Visualizações
Create direct charges with Application Fee - Stripe Connect - Nodejs & Reactjs

so I have finished connecting to Stripe accounts and authenticating them. Now I want to make charges (Direct Charge) following this guide https://stripe.com/docs/connect/direct-chargeshttps://stripe.com/docs/connect/direct-charges

In my server side (Nodejs) I have

 const paymentIntent = await stripe.paymentIntents.create(
      {
        amount: amount * 100,
        currency: "USD",
        application_fee_amount: amount * 0.5 * 100,
      },
      {
        stripeAccount: connectedAccountId,
      }
    );

When calling it in the client side, it's successful but I get

status:requires_payment_method

It's the same in Stripe dashboard, and I tried to follow this guide to accept payment on client side: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout but I don't know how to connect backend with frontend.

In frontend (Reactjs) I have

  const stripePromise = loadStripe(
    process.env.REACT_APP_STRIPE_PUBLIC_PUBLISHABLE_KEY,
    {
      stripeAccount: connectedAccountId,
    }
  );

...

  <Elements stripe={stripePromise}>
            <CheckoutForm />
          </Elements>

So my question is, how do I connect these two together? How do I connect the server side code I have above to connect to the frontend to process and confirm payment with the price and application fee I have applied.

I basically want to make a direct charge with application fee, and I want the process to start when end users clicks on a button in frontend - so far only the intent is created with button click

Please let me know if something is not clear.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda