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

#   URL if payment was successful

##

- **[shpuser](/forum/user/30542-shpuser "View shpuser's Profile")**
- [![shpuser's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/30542-shpuser "View shpuser's Profile") Topic Author
- [ Offline](/forum/user/30542-shpuser)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 9 months ago [\#187558](#187558) by [shpuser](/forum/user/30542-shpuser "View shpuser's Profile")  *[URL if payment was successful](/forum/29-payment-methods/874404-url-if-payment-was-successful#187558 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  I write a payment gateway, everything is ok. i send to bank correct data with price etc... i have to tell the bank url if payment was successful to update order status, how can i get this url? This is my first payment plugin...")* was created by *[shpuser](/forum/user/30542-shpuser "View shpuser's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

I write a payment gateway, everything is ok. i send to bank correct data with price etc... i have to tell the bank url if payment was successful to update order status, how can i get this url? This is my first payment plugin...

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#187568](#187568) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[URL if payment was successful](/forum/29-payment-methods/874404-url-if-payment-was-successful#187568 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  I write a payment gateway, everything is ok. i send to bank correct data with price etc... i have to tell the bank url if payment was successful to update order status, how can i get this url? This is my first payment plugin...")*

Hi,

Did you read the content of our sample payment plugin ?
[ github.com/HikaShop/sample-payment-plugin](https://github.com/HikaShop/sample-payment-plugin)

I don't know how your payment is working so I don't know if you're talking about the "notify url" (for server-to-server validation) or else.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[shpuser](/forum/user/30542-shpuser "View shpuser's Profile")**
- [![shpuser's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/30542-shpuser "View shpuser's Profile") Topic Author
- [ Offline](/forum/user/30542-shpuser)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 9 months ago -  11 years 9 months ago [\#187625](#187625) by [shpuser](/forum/user/30542-shpuser "View shpuser's Profile")  Replied by *[shpuser](/forum/user/30542-shpuser "View shpuser's Profile")* on topic *[URL if payment was successful](/forum/29-payment-methods/874404-url-if-payment-was-successful#187625 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  I write a payment gateway, everything is ok. i send to bank correct data with price etc... i have to tell the bank url if payment was successful to update order status, how can i get this url? This is my first payment plugin...")*

Yes, i read it.

In the paypal plugin i see this part of code in the function onAfterOrderConfirm(): Code:

$notify_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment='.$this-&gt;name.'&amp;tmpl=component&amp;lang='.$this-&gt;locale . $this-&gt;url_itemid; $return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id . $this-&gt;url_itemid; $cancel_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=order&amp;task=cancel_order&amp;order_id='.$order-&gt;order_id . $this-&gt;url_itemid;

Then in the variable $vars: Code:

'return' =&gt; $return_url, 'notify_url' =&gt; $notify_url, 'cancel_return' =&gt; $cancel_url,

Trough form myplugin_end.php i tell the gateway provider follow data:
*Ordernumber, language, currency, name, clientmail, amount*

but i don't have any of this params in the documentation of my gateway page. I have to tell the gateway provider following url's:
1. If the order is successful, for example with content "Thanke you for your order..."
2. If the order is canceled "Error page..."

Are 2 urls this urls?

[ ![payment&#95;plugin.jpg](/forum/attachment/21830) ](/forum/attachment/21830 "...ent&#95;plugin.jpg")

- [ ![payment&#95;plugin.jpg](/forum/attachment/21830) ](/forum/attachment/21830 "...ent&#95;plugin.jpg") [ ](/forum/attachment/21830?download=1 "...ent&#95;plugin.jpg")

Last edit: 11 years 9 months ago by [shpuser](/forum/user/30542-shpuser "View shpuser's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 9 months ago [\#187642](#187642) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[URL if payment was successful](/forum/29-payment-methods/874404-url-if-payment-was-successful#187642 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  I write a payment gateway, everything is ok. i send to bank correct data with price etc... i have to tell the bank url if payment was successful to update order status, how can i get this url? This is my first payment plugin...")*

Hello,
You should always use the 'notify_url' which will call the "OnPaymentNotification" function of your payment plugin, and then do what you have to do through that function (confirm your order/redirect your users/...).

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

- **[shpuser](/forum/user/30542-shpuser "View shpuser's Profile")**
- [![shpuser's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/30542-shpuser "View shpuser's Profile") Topic Author
- [ Offline](/forum/user/30542-shpuser)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 9 months ago [\#187775](#187775) by [shpuser](/forum/user/30542-shpuser "View shpuser's Profile")  Replied by *[shpuser](/forum/user/30542-shpuser "View shpuser's Profile")* on topic *[URL if payment was successful](/forum/29-payment-methods/874404-url-if-payment-was-successful#187775 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  I write a payment gateway, everything is ok. i send to bank correct data with price etc... i have to tell the bank url if payment was successful to update order status, how can i get this url? This is my first payment plugin...")*

Hi,

sorry for this question but i must be sure... if i call this url directly in browser, then i see blank screen, it is ok?

Thanke you...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzQ0MDQtdXJsLWlmLXBheW1lbnQtd2FzLXN1Y2Nlc3NmdWw/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 9 months ago [\#187783](#187783) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[URL if payment was successful](/forum/29-payment-methods/874404-url-if-payment-was-successful#187783 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  I write a payment gateway, everything is ok. i send to bank correct data with price etc... i have to tell the bank url if payment was successful to update order status, how can i get this url? This is my first payment plugin...")*

Hi,

Yes, it's ok.

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

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