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

#   custom payment plugin:define return and notify url

##

- **[buzibuzi](/forum/user/30472-buzibuzi "View buzibuzi's Profile")**
- [![buzibuzi's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/butterfly.gif)](/forum/user/30472-buzibuzi "View buzibuzi's Profile") Topic Author
- [ Offline](/forum/user/30472-buzibuzi)

Less More

- Posts: 19
- Thank you received: 0
-
- [](http://www.hubeza.com)
-

12 years 10 months ago [\#138189](#138189) by [buzibuzi](/forum/user/30472-buzibuzi "View buzibuzi's Profile")  *[custom payment plugin:define return and notify url](/forum/29-payment-methods/864643-custom-payment-plugin-define-return-and-notify-url#138189 "Hi, setting up a custom payment plugin, my payment gateway has 3 fields for payment attempts results:  success URL fail URL Notify URL  this is how i set it up: success URL: &quot;mysite.com/index.php?option=com&#95;hikashop&amp;view=checkout&amp;layout=after&#95;end&quot; fail URL: &quot;mysite.com/index.php?option=com&#95;hikashop&amp;view=checkout&amp;layout=after&#95;end&quot; Notify URL: &quot;mysite.com/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=ogone&amp;tmpl=component&amp;lang=il&quot;  is this correct ?  now, after a successful payment im redirected back and get the message: &quot;thank you for your purchase&quot;, but the order is not confirmed and no confirmation email is sent.  im guessing the &quot;Notify URL&quot; is where the success/fail order&#95;number parameters are received to complete the process. what parameters need to be posted back ? and example or documentation on this ?  Thank you")* was created by *[buzibuzi](/forum/user/30472-buzibuzi "View buzibuzi's Profile")*

Hi, setting up a custom payment plugin, my payment gateway has 3 fields for payment attempts results:

success URL
fail URL
Notify URL

this is how i set it up:
success URL: "mysite.com/index.php?option=com_hikashop&amp;view=checkout&amp;layout=after_end"
fail URL: "mysite.com/index.php?option=com_hikashop&amp;view=checkout&amp;layout=after_end"
Notify URL: "mysite.com/index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=ogone&amp;tmpl=component&amp;lang=il"

is this correct ?

now, after a successful payment im redirected back and get the message: "thank you for your purchase", but the order is not confirmed and no confirmation email is sent.

im guessing the "Notify URL" is where the success/fail order_number parameters are received to complete the process.
what parameters need to be posted back ? and example or documentation on this ?

Thank you

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

Less More

- Posts: 86560
- Thank you received: 14307
-
-

12 years 10 months ago [\#138232](#138232) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[custom payment plugin:define return and notify url](/forum/29-payment-methods/864643-custom-payment-plugin-define-return-and-notify-url#138232 "Hi, setting up a custom payment plugin, my payment gateway has 3 fields for payment attempts results:  success URL fail URL Notify URL  this is how i set it up: success URL: &quot;mysite.com/index.php?option=com&#95;hikashop&amp;view=checkout&amp;layout=after&#95;end&quot; fail URL: &quot;mysite.com/index.php?option=com&#95;hikashop&amp;view=checkout&amp;layout=after&#95;end&quot; Notify URL: &quot;mysite.com/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=ogone&amp;tmpl=component&amp;lang=il&quot;  is this correct ?  now, after a successful payment im redirected back and get the message: &quot;thank you for your purchase&quot;, but the order is not confirmed and no confirmation email is sent.  im guessing the &quot;Notify URL&quot; is where the success/fail order&#95;number parameters are received to complete the process. what parameters need to be posted back ? and example or documentation on this ?  Thank you")*

Hi,

In the "notif_payment" parameter of your notify URL, you need to enter the name of the plugin which probably is not ogone.
Also, that URL needs to be available by anyone else (so your website needs to be online, the website shoudl not be in maintenance, and not protected by a htaccess authentication, and the menus should be accessible by all the uer groups on your website.
Then, the payment gateway will be able to send his payment notification to that URL and if you echo some text at the beginning of your plugin's onPaymentNotification function and then return, you should see it in the payment log file available in the configuration of HikaShop.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjQ2NDMtY3VzdG9tLXBheW1lbnQtcGx1Z2luLWRlZmluZS1yZXR1cm4tYW5kLW5vdGlmeS11cmw/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.043 seconds

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