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.