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

#  Profile for oby

##

[![oby's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/43072-oby "View oby's Profile")

**[ Offline](/forum/user/43072-oby)**

- **User Type:** User

- **Register Date:** 14 May 2016
- **Last login:** 10 years 1 month ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 15:23

- **Posts:** 4
- **Profile views:** 35

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  oby's recent posts  (4 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/29-payment-methods/886355-how-can-i-print-a-message-from-onpaymentnotificati#249535) | [How can I print a message from onPaymentNotificati](/forum/29-payment-methods/886355-how-can-i-print-a-message-from-onpaymentnotificati#249535 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- Browser(s) name and version -- : Firefox 48.0.2 -- Error-message(debug-mod must be tuned on) -- : None  As a requirement of a custom payment plugin I am develping for Hikahop, I need to print a message from onPaymentNotification function to the default cancel url. I placed the following code in the onPaymentNotification function of Hikashop. The codes in the two conditions work fine as required, but the echoed message in line 15 does not display of the cancel&#95;url when condition for cancel is met. I am using the defualt cancel url as shown in line 15")        Category: [Payment Methods](/forum/29-payment-methods "Discussions about the different payment methods for Hikashop")     Topic started 10 years 1 month ago, by [oby](/forum/user/43072-oby "View oby's Profile")       [Last Post](/forum/29-payment-methods/886355-how-can-i-print-a-message-from-onpaymentnotificati#249548 "Hi,  I see two issues with your code: 1. You do a redirect after displaying the message. So even though that message is added to the display buffer of PHP, the buffer is dumped by PHP when it does the redirect. Thus, it's normal nothing is displayed. 2. The onPaymentNotification function's displayed elements are automatically retrieved from the display buffer and stored in the payment log file (that you can access in the HikaShop configuration) when the onPaymentNotification function returns, so even if you remove the redirect, your message would only go in the payment log file. You would have to create a new buffer with the ob&#95;start(); function before returning. 3. The onPaymentNotification function is usually called by the payment gateway, and in that case what you'll display in it will returned to the payment gateway, not the customer, and thus he won't see the message. That however, is not always the case (even thought it is for most payment gateways).") 10 years 1 month ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:686 | [Last Post](/forum/29-payment-methods/886355-how-can-i-print-a-message-from-onpaymentnotificati#249548 "Hi,  I see two issues with your code: 1. You do a redirect after displaying the message. So even though that message is added to the display buffer of PHP, the buffer is dumped by PHP when it does the redirect. Thus, it's normal nothing is displayed. 2. The onPaymentNotification function's displayed elements are automatically retrieved from the display buffer and stored in the payment log file (that you can access in the HikaShop configuration) when the onPaymentNotification function returns, so even if you remove the redirect, your message would only go in the payment log file. You would have to create a new buffer with the ob&#95;start(); function before returning. 3. The onPaymentNotification function is usually called by the payment gateway, and in that case what you'll display in it will returned to the payment gateway, not the customer, and thus he won't see the message. That however, is not always the case (even thought it is for most payment gateways).") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      10 years 1 month ago |
| [](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245233) | [Undefined property: plgHikashoppaymentExample::$ur](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245233 "I am developing a payment method using the Example.zip files as guide. Everything works well until I uncommented the following two line:  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order&#95;id.$this-&gt;url&#95;itemid;  $this-&gt;app-&gt;redirect($return&#95;url);  Then i get this message:  Notice: Undefined property: plgHikashoppaymentExample::$url&#95;itemid in C:&#92;Bitnami&#92;wampstack-5.6.22-0&#92;apache2&#92;htdocs&#92;Joomla&#95;3.5.1&#92;plugins&#92;hikashoppayment&#92;example&#92;example.php on line 275  Notice: Undefined property: plgHikashoppaymentExample::$app in C:&#92;Bitnami&#92;wampstack-5.6.22-0&#92;apache2&#92;htdocs&#92;Joomla&#95;3.5.1&#92;plugins&#92;hikashoppayment&#92;example&#92;example.php on line 282  Fatal error: Call to a member function redirect() on null in C:&#92;Bitnami&#92;wampstack-5.6.22-0&#92;apache2&#92;htdocs&#92;Joomla&#95;3.5.1&#92;plugins&#92;hikashoppayment&#92;example&#92;example.php on line 282  How can I clear the error so that I can proceed with the development. Thanks")         Category: [Payment Methods](/forum/29-payment-methods "Discussions about the different payment methods for Hikashop")     Topic started 10 years 3 months ago, by [oby](/forum/user/43072-oby "View oby's Profile")       [Last Post](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245233 "Thanks a million! Including those lines solved the problem. Have a nice day.") 10 years 3 months ago     by [oby](/forum/user/43072-oby "View oby's Profile") | Replies:4  Views:764 | [Last Post](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245233 "Thanks a million! Including those lines solved the problem. Have a nice day.") by [oby](/forum/user/43072-oby "View oby's Profile")      10 years 3 months ago |
| [](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245191) | [Undefined property: plgHikashoppaymentExample::$ur](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245191 "I am developing a payment method using the Example.zip files as guide. Everything works well until I uncommented the following two line:  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order&#95;id.$this-&gt;url&#95;itemid;  $this-&gt;app-&gt;redirect($return&#95;url);  Then i get this message:  Notice: Undefined property: plgHikashoppaymentExample::$url&#95;itemid in C:&#92;Bitnami&#92;wampstack-5.6.22-0&#92;apache2&#92;htdocs&#92;Joomla&#95;3.5.1&#92;plugins&#92;hikashoppayment&#92;example&#92;example.php on line 275  Notice: Undefined property: plgHikashoppaymentExample::$app in C:&#92;Bitnami&#92;wampstack-5.6.22-0&#92;apache2&#92;htdocs&#92;Joomla&#95;3.5.1&#92;plugins&#92;hikashoppayment&#92;example&#92;example.php on line 282  Fatal error: Call to a member function redirect() on null in C:&#92;Bitnami&#92;wampstack-5.6.22-0&#92;apache2&#92;htdocs&#92;Joomla&#95;3.5.1&#92;plugins&#92;hikashoppayment&#92;example&#92;example.php on line 282  How can I clear the error so that I can proceed with the development. Thanks")         Category: [Payment Methods](/forum/29-payment-methods "Discussions about the different payment methods for Hikashop")     Topic started 10 years 3 months ago, by [oby](/forum/user/43072-oby "View oby's Profile")       [Last Post](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245233 "Thanks a million! Including those lines solved the problem. Have a nice day.") 10 years 3 months ago     by [oby](/forum/user/43072-oby "View oby's Profile") | Replies:4  Views:764 | [Last Post](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245233 "Thanks a million! Including those lines solved the problem. Have a nice day.") by [oby](/forum/user/43072-oby "View oby's Profile")      10 years 3 months ago |
| [](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245142) | [Undefined property: plgHikashoppaymentExample::$ur](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245142 "I am developing a payment method using the Example.zip files as guide. Everything works well until I uncommented the following two line:  $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order&#95;id.$this-&gt;url&#95;itemid;  $this-&gt;app-&gt;redirect($return&#95;url);  Then i get this message:  Notice: Undefined property: plgHikashoppaymentExample::$url&#95;itemid in C:&#92;Bitnami&#92;wampstack-5.6.22-0&#92;apache2&#92;htdocs&#92;Joomla&#95;3.5.1&#92;plugins&#92;hikashoppayment&#92;example&#92;example.php on line 275  Notice: Undefined property: plgHikashoppaymentExample::$app in C:&#92;Bitnami&#92;wampstack-5.6.22-0&#92;apache2&#92;htdocs&#92;Joomla&#95;3.5.1&#92;plugins&#92;hikashoppayment&#92;example&#92;example.php on line 282  Fatal error: Call to a member function redirect() on null in C:&#92;Bitnami&#92;wampstack-5.6.22-0&#92;apache2&#92;htdocs&#92;Joomla&#95;3.5.1&#92;plugins&#92;hikashoppayment&#92;example&#92;example.php on line 282  How can I clear the error so that I can proceed with the development. Thanks")         Category: [Payment Methods](/forum/29-payment-methods "Discussions about the different payment methods for Hikashop")     Topic started 10 years 3 months ago, by [oby](/forum/user/43072-oby "View oby's Profile")       [Last Post](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245233 "Thanks a million! Including those lines solved the problem. Have a nice day.") 10 years 3 months ago     by [oby](/forum/user/43072-oby "View oby's Profile") | Replies:4  Views:764 | [Last Post](/forum/29-payment-methods/885498-undefined-property-plghikashoppaymentexample-ur#245233 "Thanks a million! Including those lines solved the problem. Have a nice day.") by [oby](/forum/user/43072-oby "View oby's Profile")      10 years 3 months ago |

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

Time to create page: 0.158 seconds

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

[](#top)
