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

#   order cancelled when payment is aborted

##

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

Less More

- Posts: 515
- Thank you received: 22
-
-

10 years 7 months ago [\#235818](#235818) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  *[order cancelled when payment is aborted](/forum/29-payment-methods/883698-order-cancelled-when-payment-is-aborted#235818 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the &quot;Unpaid order statuses&quot; and &quot;Cancelled order statuses&quot;, but can't get it to a setting that sets the status to &quot;created&quot; instead of &quot;cancelled&quot;. The customer has to be able to pay with another payment method.")* was created by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the "Unpaid order statuses" and "Cancelled order statuses", but can't get it to a setting that sets the status to "created" instead of "cancelled". The customer has to be able to pay with another payment method.

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

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 7 months ago [\#235821](#235821) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[order cancelled when payment is aborted](/forum/29-payment-methods/883698-order-cancelled-when-payment-is-aborted#235821 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the &quot;Unpaid order statuses&quot; and &quot;Cancelled order statuses&quot;, but can't get it to a setting that sets the status to &quot;created&quot; instead of &quot;cancelled&quot;. The customer has to be able to pay with another payment method.")*

Hi,

It's normal that the order is cancelled when the payment is aborted.
Normally, at that point the customer is then brought back to the checkout so that it can pay again with the creation of a new order at the end of the checkout.
If that's not the case, it's probably that you don't have the "Clean cart when order is" setting set to "confirmed" in the HikaShop configuration. So please check on that.

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

10 years 7 months ago [\#235952](#235952) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[order cancelled when payment is aborted](/forum/29-payment-methods/883698-order-cancelled-when-payment-is-aborted#235952 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the &quot;Unpaid order statuses&quot; and &quot;Cancelled order statuses&quot;, but can't get it to a setting that sets the status to &quot;created&quot; instead of &quot;cancelled&quot;. The customer has to be able to pay with another payment method.")*

Hi,

That's doesn't look very customer friendly, does it? It often happens when a payment provider or bankwebsite has some kind of online problem. The customer doesn't want to cancel the order, just choose another way to pay. Recreating the order from scratch is not what this customer wants to do. Especially not if the order was created earlier and a personalized design was made for him/her wich is attached to this actual order. How can I change this so that the order still will be active after a aborted payment?

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

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 7 months ago [\#236092](#236092) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[order cancelled when payment is aborted](/forum/29-payment-methods/883698-order-cancelled-when-payment-is-aborted#236092 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the &quot;Unpaid order statuses&quot; and &quot;Cancelled order statuses&quot;, but can't get it to a setting that sets the status to &quot;created&quot; instead of &quot;cancelled&quot;. The customer has to be able to pay with another payment method.")*

Hi,

Normally, when the user cancels the payment and returns to the checkout with his order cancelled, he can choose another way to way and click on finish again to go the the other payment plateform for the payment. The system will just recreate a new order with the exact same data as the first one except for the payment method.
So it does what you're talking about.

Nevertheless, if you want to not have the cancelled orders, you can remove the line:
$class-&gt;save($newOrder);
in the file components/com_hikashop/controllers/order.php
That way, the order will stay created.

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

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 7 months ago [\#236093](#236093) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[order cancelled when payment is aborted](/forum/29-payment-methods/883698-order-cancelled-when-payment-is-aborted#236093 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the &quot;Unpaid order statuses&quot; and &quot;Cancelled order statuses&quot;, but can't get it to a setting that sets the status to &quot;created&quot; instead of &quot;cancelled&quot;. The customer has to be able to pay with another payment method.")*

Hi,

Normally, when the user cancels the payment and returns to the checkout with his order cancelled, he can choose another way to way and click on finish again to go the the other payment plateform for the payment. The system will just recreate a new order with the exact same data as the first one except for the payment method.
So it does what you're talking about.

Nevertheless, if you want to not have the cancelled orders, you can remove the line:
$class-&gt;save($newOrder);
in the file components/com_hikashop/controllers/order.php
That way, the order will stay created.

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

10 years 6 months ago [\#237099](#237099) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[order cancelled when payment is aborted](/forum/29-payment-methods/883698-order-cancelled-when-payment-is-aborted#237099 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the &quot;Unpaid order statuses&quot; and &quot;Cancelled order statuses&quot;, but can't get it to a setting that sets the status to &quot;created&quot; instead of &quot;cancelled&quot;. The customer has to be able to pay with another payment method.")*

Yes, that would be a good solutuion for me, but then the customer also won't be able to cancel the order when he/she wants to for any other reason.

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

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 6 months ago [\#237105](#237105) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[order cancelled when payment is aborted](/forum/29-payment-methods/883698-order-cancelled-when-payment-is-aborted#237105 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the &quot;Unpaid order statuses&quot; and &quot;Cancelled order statuses&quot;, but can't get it to a setting that sets the status to &quot;created&quot; instead of &quot;cancelled&quot;. The customer has to be able to pay with another payment method.")*

He can, thanks to the cancel button on the orders listing.
This button will display if you configure the statuses in the setting "Cancellable orders statuses" of the HikaShop configuration.

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

10 years 6 months ago [\#237322](#237322) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[order cancelled when payment is aborted](/forum/29-payment-methods/883698-order-cancelled-when-payment-is-aborted#237322 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the &quot;Unpaid order statuses&quot; and &quot;Cancelled order statuses&quot;, but can't get it to a setting that sets the status to &quot;created&quot; instead of &quot;cancelled&quot;. The customer has to be able to pay with another payment method.")*

I know, but when I remove the line "$class-&gt;save($newOrder);", the order isn't cancelled when hitting the cancel button.

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

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 6 months ago [\#237361](#237361) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[order cancelled when payment is aborted](/forum/29-payment-methods/883698-order-cancelled-when-payment-is-aborted#237361 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the &quot;Unpaid order statuses&quot; and &quot;Cancelled order statuses&quot;, but can't get it to a setting that sets the status to &quot;created&quot; instead of &quot;cancelled&quot;. The customer has to be able to pay with another payment method.")*

Hi,

Oh, I see.
Then instead of deleting that line, add that code before it: Code:

$redirect_url = JRequest::getVar('redirect_url'); if( empty($redirect_url) )

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

10 years 6 months ago [\#237511](#237511) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[order cancelled when payment is aborted](/forum/29-payment-methods/883698-order-cancelled-when-payment-is-aborted#237511 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  When a customer aborts the payment (Paypal or iDEAL) for any reason, the orderstatus is automatically set to cancelled. I tried all kind of settings for the &quot;Unpaid order statuses&quot; and &quot;Cancelled order statuses&quot;, but can't get it to a setting that sets the status to &quot;created&quot; instead of &quot;cancelled&quot;. The customer has to be able to pay with another payment method.")*

Hi,

Thanks, I think that last line must be "if(!empty($redirect_url) )".

Made the change, works fine.

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

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