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

#   get Address information on payment plugin

##

- **[kaya](/forum/user/25605-kaya "View kaya's Profile")**
- [![kaya's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/25605-kaya "View kaya's Profile") Topic Author
- [ Offline](/forum/user/25605-kaya)

Less More

- Posts: 120
- Thank you received: 2
-
-
- [](http://arasjoomla.ir)
-

11 years 5 months ago [\#202879](#202879) by [kaya](/forum/user/25605-kaya "View kaya's Profile")  *[get Address information on payment plugin](/forum/29-payment-methods/877179-get-address-information-on-payment-plugin#202879 "-- HikaShop version -- : 2.x.x -- Joomla version -- : 2.5  Hi dear I need Address information in payment plugin. how can get it?")* was created by *[kaya](/forum/user/25605-kaya "View kaya's Profile")*

-- HikaShop version -- : 2.x.x
-- Joomla version -- : 2.5

Hi dear
I need Address information in payment plugin. how can get it?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzcxNzktZ2V0LWFkZHJlc3MtaW5mb3JtYXRpb24tb24tcGF5bWVudC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

11 years 5 months ago [\#202881](#202881) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[get Address information on payment plugin](/forum/29-payment-methods/877179-get-address-information-on-payment-plugin#202881 "-- HikaShop version -- : 2.x.x -- Joomla version -- : 2.5  Hi dear I need Address information in payment plugin. how can get it?")*

Hi,

Look in the $order object given to you in the trigger function of your payment plugin.
It contains all the data of the order, including the shipping and billing addresses:
[ www.hikashop.com/support/documentation/156](http://www.hikashop.com/support/documentation/156)

The following user(s) said Thank You: [kaya](/forum/user/25605-kaya "View kaya's Profile")

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

- **[kaya](/forum/user/25605-kaya "View kaya's Profile")**
- [![kaya's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/25605-kaya "View kaya's Profile") Topic Author
- [ Offline](/forum/user/25605-kaya)

Less More

- Posts: 120
- Thank you received: 2
-
-
- [](http://arasjoomla.ir)
-

11 years 5 months ago [\#204571](#204571) by [kaya](/forum/user/25605-kaya "View kaya's Profile")  Replied by *[kaya](/forum/user/25605-kaya "View kaya's Profile")* on topic *[get Address information on payment plugin](/forum/29-payment-methods/877179-get-address-information-on-payment-plugin#204571 "-- HikaShop version -- : 2.x.x -- Joomla version -- : 2.5  Hi dear I need Address information in payment plugin. how can get it?")*

Hi dear nicolas

I want get user phone in onPaymentNotification method for send sms and onPaymentNotification including $statuses.
how can get user phone with $order in onPaymentNotification method?

thank you

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 5 months ago [\#204583](#204583) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[get Address information on payment plugin](/forum/29-payment-methods/877179-get-address-information-on-payment-plugin#204583 "-- HikaShop version -- : 2.x.x -- Joomla version -- : 2.5  Hi dear I need Address information in payment plugin. how can get it?")*

Hi,

You can potentially use that code: Code:

$orderClass = hikashop_get('class.order'); $orderData = $orderClass-&gt;get($dbOrder-&gt;order_id); $db = JFactory:: getDBO(); $db-&gt;setQuery('SELECT address_telephone FROM '.hikashop_table('address').' WHERE address_id = '.(int)$orderData-&gt;order_billing_address_id); $phoneNumber = @$db-&gt;loadResult();

After: Code:

$dbOrder = $this-&gt;getOrder((int)@$vars['invoice']);

The following user(s) said Thank You: [kaya](/forum/user/25605-kaya "View kaya's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzcxNzktZ2V0LWFkZHJlc3MtaW5mb3JtYXRpb24tb24tcGF5bWVudC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) 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.050 seconds

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