Version: Drupal Commerce 2.x.

I am creating orders programatically by following the instruction from the documentation. I looked for various resources but couldn't find any way to link payment with the orders created programatically. Is there a way to create payment instance and link it to order.

  • 1
    Payments have a required order_id field, that's the only thing needed. Sep 27, 2019 at 14:11
  • Thank you for your help
    – Aves2432
    Sep 30, 2019 at 12:42


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.