[Skip to main content](#vessel-content)

#   Access payment method in checkout end view

##

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

14 years 9 months ago -  14 years 9 months ago [\#37747](#37747) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  *[Access payment method in checkout end view](/forum/4-how-to/37747-access-payment-method-in-checkout-end-view#37747 "Hi!  Is it possible to access the payment method in the checkout view &quot;end&quot;?  Best regards")* was created by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")*

Hi!

Is it possible to access the payment method in the checkout view "end"?

Best regards

Last edit: 14 years 9 months ago by [emergentec](/forum/user/949-emergentec "View emergentec's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3NzQ3LWFjY2Vzcy1wYXltZW50LW1ldGhvZC1pbi1jaGVja291dC1lbmQtdmlldz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

14 years 9 months ago [\#37899](#37899) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access payment method in checkout end view](/forum/4-how-to/37747-access-payment-method-in-checkout-end-view#37899 "Hi!  Is it possible to access the payment method in the checkout view &quot;end&quot;?  Best regards")*

What do you mean by "access the payment method" ?

You want to know the payment method selected ?
For that you would have to load the order:
$app =&amp; Jfactory::getApplication();
$class = hikashop_get('class.order');
$order = $class-&gt;get($app-&gt;getUserState( HIKASHOP_COMPONENT.'.order_id'));
echo $order-&gt;order_payment_method;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3NzQ3LWFjY2Vzcy1wYXltZW50LW1ldGhvZC1pbi1jaGVja291dC1lbmQtdmlldz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

14 years 9 months ago [\#38089](#38089) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access payment method in checkout end view](/forum/4-how-to/37747-access-payment-method-in-checkout-end-view#38089 "Hi!  Is it possible to access the payment method in the checkout view &quot;end&quot;?  Best regards")*

Can't I get the label instead of the code?

"Bank transfer" instead of banktransfer?

Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3NzQ3LWFjY2Vzcy1wYXltZW50LW1ldGhvZC1pbi1jaGVja291dC1lbmQtdmlldz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

14 years 9 months ago [\#38183](#38183) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access payment method in checkout end view](/forum/4-how-to/37747-access-payment-method-in-checkout-end-view#38183 "Hi!  Is it possible to access the payment method in the checkout view &quot;end&quot;?  Best regards")*

It's possible.

In that case you need to do like that: Code:

$app =&amp; Jfactory::getApplication(); $class = hikashop_get('class.order'); $order = $class-&gt;get($app-&gt;getUserState( HIKASHOP_COMPONENT.'.order_id')); $paymentClass = hikashop_get('class.payment'); $payment = $paymentClass-&gt;get($order-&gt;order_payment_id); echo $payment-&gt;payment_name;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM3NzQ3LWFjY2Vzcy1wYXltZW50LW1ldGhvZC1pbi1jaGVja291dC1lbmQtdmlldz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
