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

#   files run after an order is cancelled/paid

##

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

Less More

- Posts: 32
- Thank you received: 0
-
-

12 years 6 months ago [\#157754](#157754) by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")  *[files run after an order is cancelled/paid](/forum/27-checkout/868564-files-run-after-an-order-is-cancelled-paid#157754 "Hi Guys,  Just a quick question regarding the checkout process in hikashop. When the customer is returned to our website from our payment gateway (when an order is cancelled AND when an order is successful) which views do i need to edit so that i can run a bit of code to clear out some custom session variables?  Thanks in advance.")* was created by *[diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")*

Hi Guys,

Just a quick question regarding the checkout process in hikashop. When the customer is returned to our website from our payment gateway (when an order is cancelled AND when an order is successful) which views do i need to edit so that i can run a bit of code to clear out some custom session variables?

Thanks in advance.

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 5 months ago [\#157771](#157771) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[files run after an order is cancelled/paid](/forum/27-checkout/868564-files-run-after-an-order-is-cancelled-paid#157771 "Hi Guys,  Just a quick question regarding the checkout process in hikashop. When the customer is returned to our website from our payment gateway (when an order is cancelled AND when an order is successful) which views do i need to edit so that i can run a bit of code to clear out some custom session variables?  Thanks in advance.")*

Hi there,

Our payment plugins allow you to choose the return url (in System&gt;Payment methods). So what I would suggest is to write your own file with whatever you want inside and then do the redirection to the home page (or another page). This will allow you to add some code without editing the core files and thus being exposed to issue when updating.

Make sure to specify this return url for every payment method you have though!

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

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