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

#   Payment cancel

##

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

Less More

- Posts: 25
- Thank you received: 4
-
-

14 years 5 months ago [\#50340](#50340) by [maxgag51](/forum/user/2876-maxgag51 "View maxgag51's Profile")  *[Payment cancel](/forum/2-general-talk-about-hikashop/50340-payment-cancel#50340 "Hi Nicolas, I implemented a new standard payment gateway (credit card like: italian KeyClient). I have two possible return url; the one if payment is ok and the other if user cancel payment. Where i can reenter in the second case? Suggestions? Because, at the moment (same return address), is sent also the e-mail that notify the purchase also if is was cancelled. Thanks in advance Massimo")* was created by *[maxgag51](/forum/user/2876-maxgag51 "View maxgag51's Profile")*

Hi Nicolas,
I implemented a new standard payment gateway (credit card like: italian KeyClient).
I have two possible return url; the one if payment is ok and the other if user cancel payment.
Where i can reenter in the second case?
Suggestions?
Because, at the moment (same return address), is sent also the e-mail that notify the purchase also if is was cancelled.
Thanks in advance
Massimo

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 5 months ago [\#50430](#50430) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Payment cancel](/forum/2-general-talk-about-hikashop/50340-payment-cancel#50430 "Hi Nicolas, I implemented a new standard payment gateway (credit card like: italian KeyClient). I have two possible return url; the one if payment is ok and the other if user cancel payment. Where i can reenter in the second case? Suggestions? Because, at the moment (same return address), is sent also the e-mail that notify the purchase also if is was cancelled. Thanks in advance Massimo")*

Usually, we don't provide an option in the payment plugin to specify the cancel url in the payment plugin and HikaShop handles that automatically. You just have to specify that URL in the cancel URL parameter of your payment platform:
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&amp;Itemid='.$Itemid;
}
$cancel_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=order&amp;task=cancel_order&amp;order_id='.$order-&gt;order_id.$url_itemid;

You can see that code in use in the onAfterOrderConfirm function of the paypal plugin for example.

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

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

Less More

- Posts: 25
- Thank you received: 4
-
-

14 years 5 months ago [\#50446](#50446) by [maxgag51](/forum/user/2876-maxgag51 "View maxgag51's Profile")  Replied by *[maxgag51](/forum/user/2876-maxgag51 "View maxgag51's Profile")* on topic *[Re: Payment cancel](/forum/2-general-talk-about-hikashop/50340-payment-cancel#50446 "Hi Nicolas, I implemented a new standard payment gateway (credit card like: italian KeyClient). I have two possible return url; the one if payment is ok and the other if user cancel payment. Where i can reenter in the second case? Suggestions? Because, at the moment (same return address), is sent also the e-mail that notify the purchase also if is was cancelled. Thanks in advance Massimo")*

Done ![:)](/media/kunena/emoticons/8.png ":)")
Thank you very much
Massimo

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

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

[](#top)
