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

#   onPaymentNotification() - Banktransfer get order

##

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

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 3 months ago [\#21632](#21632) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  *[onPaymentNotification() - Banktransfer get order](/forum/4-how-to/21632-onpaymentnotification-banktransfer-get-order#21632 "Hey!  I am using the banktransfer payment method in my website and I ran into a problem.. Created a onPaymentNotification() for banktransfer that was copied from paypal and i need to get order info to update status if a success note sent. My problem is I copied from paypal so the code work only at the start and then gets out before getting the order params.  i tried changing this: $elements = $pluginsClass-&gt;getMethods('payment','paypal'); to 'banktransfer' but it return false.  i need to change it so i can use the next line to (i think its that line) change status to confirmed after that i got the order parameters:  $order-&gt;old&#95;status-&gt;order&#95;status=$dbOrder-&gt;order&#95;status;  How can i set the element to banktransfer so it wont fail and how do i use the $order to change the order status?  thanks in advance.")* was created by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")*

Hey!

I am using the banktransfer payment method in my website and I ran into a problem..
Created a onPaymentNotification() for banktransfer that was copied from paypal and i need to get order info to update status if a success note sent. My problem is I copied from paypal so the code work only at the start and then gets out before getting the order params.

i tried changing this:
*$elements = $pluginsClass-&gt;getMethods('payment','paypal');* to 'banktransfer' but it return false.

i need to change it so i can use the next line to (i think its that line) change status to confirmed after that i got the order parameters:
*$order-&gt;old\_status-&gt;order\_status=$dbOrder-&gt;order\_status;*

How can i set the element to banktransfer so it wont fail and how do i use the $order to change the order status?

thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxNjMyLW9ucGF5bWVudG5vdGlmaWNhdGlvbi1iYW5rdHJhbnNmZXItZ2V0LW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

15 years 3 months ago [\#21635](#21635) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: onPaymentNotification() - Banktransfer get order](/forum/4-how-to/21632-onpaymentnotification-banktransfer-get-order#21635 "Hey!  I am using the banktransfer payment method in my website and I ran into a problem.. Created a onPaymentNotification() for banktransfer that was copied from paypal and i need to get order info to update status if a success note sent. My problem is I copied from paypal so the code work only at the start and then gets out before getting the order params.  i tried changing this: $elements = $pluginsClass-&gt;getMethods('payment','paypal'); to 'banktransfer' but it return false.  i need to change it so i can use the next line to (i think its that line) change status to confirmed after that i got the order parameters:  $order-&gt;old&#95;status-&gt;order&#95;status=$dbOrder-&gt;order&#95;status;  How can i set the element to banktransfer so it wont fail and how do i use the $order to change the order status?  thanks in advance.")*

If that method returns false, it means that the payment plugin is not published or has not been configured or is not available for the current access level.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxNjMyLW9ucGF5bWVudG5vdGlmaWNhdGlvbi1iYW5rdHJhbnNmZXItZ2V0LW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 3 months ago [\#21639](#21639) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  Replied by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")* on topic *[Re: onPaymentNotification() - Banktransfer get order](/forum/4-how-to/21632-onpaymentnotification-banktransfer-get-order#21639 "Hey!  I am using the banktransfer payment method in my website and I ran into a problem.. Created a onPaymentNotification() for banktransfer that was copied from paypal and i need to get order info to update status if a success note sent. My problem is I copied from paypal so the code work only at the start and then gets out before getting the order params.  i tried changing this: $elements = $pluginsClass-&gt;getMethods('payment','paypal'); to 'banktransfer' but it return false.  i need to change it so i can use the next line to (i think its that line) change status to confirmed after that i got the order parameters:  $order-&gt;old&#95;status-&gt;order&#95;status=$dbOrder-&gt;order&#95;status;  How can i set the element to banktransfer so it wont fail and how do i use the $order to change the order status?  thanks in advance.")*

Ok so i checked little farther and found out that the false comes from here:

*if(!$element-&gt;payment\_params-&gt;notification){
return false;
}*

In addition, $order and $element-&gt;payment_params-&gt;verified_status are empty by that..

What do i do to get values in thoes parameters?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxNjMyLW9ucGF5bWVudG5vdGlmaWNhdGlvbi1iYW5rdHJhbnNmZXItZ2V0LW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

15 years 3 months ago [\#21641](#21641) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: onPaymentNotification() - Banktransfer get order](/forum/4-how-to/21632-onpaymentnotification-banktransfer-get-order#21641 "Hey!  I am using the banktransfer payment method in my website and I ran into a problem.. Created a onPaymentNotification() for banktransfer that was copied from paypal and i need to get order info to update status if a success note sent. My problem is I copied from paypal so the code work only at the start and then gets out before getting the order params.  i tried changing this: $elements = $pluginsClass-&gt;getMethods('payment','paypal'); to 'banktransfer' but it return false.  i need to change it so i can use the next line to (i think its that line) change status to confirmed after that i got the order parameters:  $order-&gt;old&#95;status-&gt;order&#95;status=$dbOrder-&gt;order&#95;status;  How can i set the element to banktransfer so it wont fail and how do i use the $order to change the order status?  thanks in advance.")*

Those parameters are set by the user in the configuration of the plugin. Since you didn't add them to the bank transfer plugin they won't be available in that function.
You can look at the file plugins/hikashoppayment/paypal_configuration.php and put them in plugins/hikashoppayment/banktransfer_configuration.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxNjMyLW9ucGF5bWVudG5vdGlmaWNhdGlvbi1iYW5rdHJhbnNmZXItZ2V0LW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 3 months ago [\#21645](#21645) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  Replied by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")* on topic *[Re: onPaymentNotification() - Banktransfer get order](/forum/4-how-to/21632-onpaymentnotification-banktransfer-get-order#21645 "Hey!  I am using the banktransfer payment method in my website and I ran into a problem.. Created a onPaymentNotification() for banktransfer that was copied from paypal and i need to get order info to update status if a success note sent. My problem is I copied from paypal so the code work only at the start and then gets out before getting the order params.  i tried changing this: $elements = $pluginsClass-&gt;getMethods('payment','paypal'); to 'banktransfer' but it return false.  i need to change it so i can use the next line to (i think its that line) change status to confirmed after that i got the order parameters:  $order-&gt;old&#95;status-&gt;order&#95;status=$dbOrder-&gt;order&#95;status;  How can i set the element to banktransfer so it wont fail and how do i use the $order to change the order status?  thanks in advance.")*

I copied the plugins/hikashoppayment/paypal_configuration.php content to plugins/hikashoppayment/banktransfer_configuration.php and checked the $element parameter, but it is still empty..

What may be the problem?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxNjMyLW9ucGF5bWVudG5vdGlmaWNhdGlvbi1iYW5rdHJhbnNmZXItZ2V0LW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

15 years 3 months ago [\#21646](#21646) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: onPaymentNotification() - Banktransfer get order](/forum/4-how-to/21632-onpaymentnotification-banktransfer-get-order#21646 "Hey!  I am using the banktransfer payment method in my website and I ran into a problem.. Created a onPaymentNotification() for banktransfer that was copied from paypal and i need to get order info to update status if a success note sent. My problem is I copied from paypal so the code work only at the start and then gets out before getting the order params.  i tried changing this: $elements = $pluginsClass-&gt;getMethods('payment','paypal'); to 'banktransfer' but it return false.  i need to change it so i can use the next line to (i think its that line) change status to confirmed after that i got the order parameters:  $order-&gt;old&#95;status-&gt;order&#95;status=$dbOrder-&gt;order&#95;status;  How can i set the element to banktransfer so it wont fail and how do i use the $order to change the order status?  thanks in advance.")*

You should not copy everything, just the notification and statuses part. Also, once you do that, you obviously have to edit the options of your plugin and save them so that the values are added in the database.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxNjMyLW9ucGF5bWVudG5vdGlmaWNhdGlvbi1iYW5rdHJhbnNmZXItZ2V0LW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 3 months ago [\#21653](#21653) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  Replied by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")* on topic *[Re: onPaymentNotification() - Banktransfer get order](/forum/4-how-to/21632-onpaymentnotification-banktransfer-get-order#21653 "Hey!  I am using the banktransfer payment method in my website and I ran into a problem.. Created a onPaymentNotification() for banktransfer that was copied from paypal and i need to get order info to update status if a success note sent. My problem is I copied from paypal so the code work only at the start and then gets out before getting the order params.  i tried changing this: $elements = $pluginsClass-&gt;getMethods('payment','paypal'); to 'banktransfer' but it return false.  i need to change it so i can use the next line to (i think its that line) change status to confirmed after that i got the order parameters:  $order-&gt;old&#95;status-&gt;order&#95;status=$dbOrder-&gt;order&#95;status;  How can i set the element to banktransfer so it wont fail and how do i use the $order to change the order status?  thanks in advance.")*

Great the element parameter now works, but the $order is still empty..

i used :
*$orderClass = hikashop\_get('class.order');
$dbOrder = $orderClass-&gt;get((int)@$vars);
if(empty($dbOrder)){
echo "Could not load any order for your notification ".@$vars;
return false;
}*

and elso:
*$dbOrder = $orderClass-&gt;get((int)@$\_GET);*

from ePay.

Both cannot give me the order .. what can i do?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxNjMyLW9ucGF5bWVudG5vdGlmaWNhdGlvbi1iYW5rdHJhbnNmZXItZ2V0LW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

15 years 3 months ago [\#21654](#21654) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: onPaymentNotification() - Banktransfer get order](/forum/4-how-to/21632-onpaymentnotification-banktransfer-get-order#21654 "Hey!  I am using the banktransfer payment method in my website and I ran into a problem.. Created a onPaymentNotification() for banktransfer that was copied from paypal and i need to get order info to update status if a success note sent. My problem is I copied from paypal so the code work only at the start and then gets out before getting the order params.  i tried changing this: $elements = $pluginsClass-&gt;getMethods('payment','paypal'); to 'banktransfer' but it return false.  i need to change it so i can use the next line to (i think its that line) change status to confirmed after that i got the order parameters:  $order-&gt;old&#95;status-&gt;order&#95;status=$dbOrder-&gt;order&#95;status;  How can i set the element to banktransfer so it wont fail and how do i use the $order to change the order status?  thanks in advance.")*

The URL you're using to call the notification should contain the order_id. Then, you will be able to get the order with the code from ePay

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxNjMyLW9ucGF5bWVudG5vdGlmaWNhdGlvbi1iYW5rdHJhbnNmZXItZ2V0LW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 3 months ago [\#21668](#21668) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  Replied by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")* on topic *[Re: onPaymentNotification() - Banktransfer get order](/forum/4-how-to/21632-onpaymentnotification-banktransfer-get-order#21668 "Hey!  I am using the banktransfer payment method in my website and I ran into a problem.. Created a onPaymentNotification() for banktransfer that was copied from paypal and i need to get order info to update status if a success note sent. My problem is I copied from paypal so the code work only at the start and then gets out before getting the order params.  i tried changing this: $elements = $pluginsClass-&gt;getMethods('payment','paypal'); to 'banktransfer' but it return false.  i need to change it so i can use the next line to (i think its that line) change status to confirmed after that i got the order parameters:  $order-&gt;old&#95;status-&gt;order&#95;status=$dbOrder-&gt;order&#95;status;  How can i set the element to banktransfer so it wont fail and how do i use the $order to change the order status?  thanks in advance.")*

Ops, you are right, fixed it and working fine.

Thanks again!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxNjMyLW9ucGF5bWVudG5vdGlmaWNhdGlvbi1iYW5rdHJhbnNmZXItZ2V0LW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.062 seconds

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