Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

78
Views
pago de un solo producto con productId commercejs

si capturo el pedido en commercejs, necesito proporcionar 'line_items' con el item_id como clave. Pero no tengo un item_id ( item_xyz0123 ), solo tengo un ID de producto ( prod_xyz123 ). ¿Hay alguna forma de capturar el pedido sin implementar todo el registro del carrito?

Este es mi código hasta ahora:

 res = await commerce.checkout.capture(token.id, { line_items: { item_0919893978: {quantity: 1} // i dont want this, because i have not a cart customer: { firstname: "John", lastname: "Doe", email: "john.doe@example.com", }, payment: { gateway: "test_gateway", card: { number: "4242424242424242", expiry_month: "02", expiry_year: "24", cvc: "123", postal_zip_code: "94107", }, }, });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!