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

225
Visualizações
Coinbase - put checkout Id in success page link when creating a charge

So when I am specifying the success page link when creating a charge I want to put the id in the link so I can retrieve the data from the checkout session

This is my code:

    app.get('/checkout', async (req, res) => {
        const chargeData = {
            name: 'test',
            local_price: {
                amount: '1.00',
                currency: 'USD'
            },
            pricing_type: 'fixed_price',
            redirect_url: 'http://localhost:3000/order',
            cancel_url: 'http://localhost:3000/cancel'
        }
    
        const charge = await Charge.create(chargeData)
    
        res.send(charge)
    })

And I want to make something like this

    app.get('/checkout', async (req, res) => {
        const chargeData = {
            name: 'test',
            local_price: {
                amount: '1.00',
                currency: 'USD'
            },
            pricing_type: 'fixed_price',
            redirect_url: 'http://localhost:3000/order?id=/*checkout id*/',
            cancel_url: 'http://localhost:3000/cancel'
        }
    
        const charge = await Charge.create(chargeData)
    
        res.send(charge)
    })
about 4 years ago · Santiago Trujillo
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