This code obtains the payment gateway used for an order with the given order ID. The first line retrieves the order object, and the second line stores the payment method of the order in the $payment_gateway variable.
Was this code snippet helpful?
YesNo