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

149
Vistas
PayPal Checkout Braintree Line Items

I'm trying to use Braintree with the PayPal Checkout SDK (sandbox environment) however everytime I try and add in line items, I get a 'create_order_error' 'PayPal error undefined: could not initialise paypal flow'. This is only when I add in the lineItems option:

...
 return paypalCheckoutInstance.createPayment({
                        flow: 'checkout',
                        amount: '100',
                        currency: 'USD',

                        intent: 'capture',

                        displayName: 'Display Test',
                        landingPageType: 'login',
                        lineItems: [
                            {
                                quantity: '1',
                                unitAmount: '50.00',
                                name: 'Test Name',
                                kind: 'debit'
                            },
                            {
                                quanity: '1',
                                unitAmount: '50.00',
                                name: 'Test Name 2',
                                kind: 'debit'
                            }
                        ],

                        enableShippingAddress: true,
...

If I remove the lineItems property or set

...
lineItems: []
...

I get no error, so presumably its the way I'm formatting the items.

Can anyone assist?

Thank you!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Misspelt 'quantity' in line item 2 as pointed out by @Reynadan in comments. Silly mistake, don't know how I didn't spot it! Many thanks to all.

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