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

226
Vistas
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 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