Seems easy but I am not able to figure it. I am using ubercart module in drupal 7, I am few payment methods like paypal, innovate and free method. All the 3 payment methods are activated, When a user places any order he has to choose which payment method he want to go for, if he is going for free method,

I need to know which variable is storing this payment method value,it should be like $order->method or $order->type same like other variables like $order->order_id,$order->billing_first_name.

In short I should come to know which payment method is chosen for a particular order.

If any buddy knows please help me.


The variable you're looking for is is $order->payment_method.

  • may I know how to get [ucxf_name]? (created by Extra Fields Checkout Pane module)
    – peifa
    Dec 22 '15 at 8:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.