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

#   PayPal Checkout - problems with cancel return and purchase

##

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

Less More

- Posts: 173
- Thank you received: 8
-
-

3 years 3 months ago -  3 years 3 months ago [\#353158](#353158) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  *[PayPal Checkout - problems with cancel return and purchase](/forum/35-orders-management/906679-paypal-checkout-problems-with-cancel-return-and-purchase#353158 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : Latest -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : No Error, just problems :-(  Hi, I'm having an issue with the new PayPal checkout, if I cancel from PayPal, the status stays at created, and I'm not redirected back to the checkout, I'm just dropped back to the PayPal button. Similarly if I complete an order it doesn't update the status to confirmed just stays at created?  Any ideas, Thanks Ian")* was created by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")*

-- HikaShop version -- : 4.7.4
-- Joomla version -- : Latest
-- PHP version -- : 7.4.33
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : No Error, just problems ![:-(](/media/kunena/emoticons/4.png ":-(")

Hi,
I'm having an issue with the new PayPal checkout, if I cancel from PayPal, the status stays at created, and I'm not redirected back to the checkout, I'm just dropped back to the PayPal button. Similarly if I complete an order it doesn't update the status to confirmed just stays at created?

Any ideas,
Thanks
Ian

Last edit: 3 years 3 months ago by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50LzkwNjY3OS1wYXlwYWwtY2hlY2tvdXQtcHJvYmxlbXMtd2l0aC1jYW5jZWwtcmV0dXJuLWFuZC1wdXJjaGFzZT90bXBsPW1hcmtkb3du) 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: 86316
- Thank you received: 14276
-
-

3 years 3 months ago [\#353160](#353160) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Checkout - problems with cancel return and purchase](/forum/35-orders-management/906679-paypal-checkout-problems-with-cancel-return-and-purchase#353160 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : Latest -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : No Error, just problems :-(  Hi, I'm having an issue with the new PayPal checkout, if I cancel from PayPal, the status stays at created, and I'm not redirected back to the checkout, I'm just dropped back to the PayPal button. Similarly if I complete an order it doesn't update the status to confirmed just stays at created?  Any ideas, Thanks Ian")*

Hi,

That's an interesting point. Normally, the plugin will display many payment methods on the end screen.
And so, when you cancel, you can select another payment method from there. So we didn't thought about returning to the checkout.

I think we'll add the code: Code:

&lt;?php if(!empty($this-&gt;payment_params-&gt;cancel_url)) { ?&gt; onCancel: function (data) { // redirect to cancel URL window.location.href = "&lt;?php echo $this-&gt;cancel_url; ?&gt;"; }, &lt;?php } ?&gt;

before the line: Code:

createOrder: function(data, actions) {

in the file plugins/hikashoppayment/paypalcheckout/paypalcheckout_end.php
That way, if you provide the URL of your checkout in the "cancel URL" of your PayPal Checkout payment method, you'll be redirected back to it when canceling the payment from PayPal.

Regarding the confirmation of the order, what is the URL you end up after the payment ?

Also, check the "payment log file" setting of the HikaShop configuration. It should contain interesting information about the issue at the end. And if you have the "debug" setting of the payment method on for a test payment, you should even even more information in the payment log.

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

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

Less More

- Posts: 173
- Thank you received: 8
-
-

3 years 3 months ago [\#353328](#353328) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  Replied by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")* on topic *[PayPal Checkout - problems with cancel return and purchase](/forum/35-orders-management/906679-paypal-checkout-problems-with-cancel-return-and-purchase#353328 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : Latest -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : No Error, just problems :-(  Hi, I'm having an issue with the new PayPal checkout, if I cancel from PayPal, the status stays at created, and I'm not redirected back to the checkout, I'm just dropped back to the PayPal button. Similarly if I complete an order it doesn't update the status to confirmed just stays at created?  Any ideas, Thanks Ian")*

Hi Nicolas,
Sorry, again I don't seem to be getting notifications of replies? I don't have a spam filter either?
Thank you, the code worked.

I checked the logs, full of previous stuff, so I cleared the log, nothing is being written to the log?

So currently:
Cancel from PayPal: Working, returns to checkout, but still does not change status to cancelled.

Complete Purchase, Status = Confirmed and return goes to home page as requested. (Working)

Thanks
Ian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50LzkwNjY3OS1wYXlwYWwtY2hlY2tvdXQtcHJvYmxlbXMtd2l0aC1jYW5jZWwtcmV0dXJuLWFuZC1wdXJjaGFzZT90bXBsPW1hcmtkb3du) 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: 86316
- Thank you received: 14276
-
-

3 years 3 months ago [\#353330](#353330) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Checkout - problems with cancel return and purchase](/forum/35-orders-management/906679-paypal-checkout-problems-with-cancel-return-and-purchase#353330 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : Latest -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : No Error, just problems :-(  Hi, I'm having an issue with the new PayPal checkout, if I cancel from PayPal, the status stays at created, and I'm not redirected back to the checkout, I'm just dropped back to the PayPal button. Similarly if I complete an order it doesn't update the status to confirmed just stays at created?  Any ideas, Thanks Ian")*

Hi,

The emails are sent by the forum system. If you don't receive them, then it means they are filtered on your end, or you provided an invalid email address when you registered. The email address you provided is one specific for our website. Maybe you forgot to create the redirection on your end for it ?
Are you receiving our newsletters and other emails like orders ?

The order should be cancelled. Are you able to reproduce the problem ?
I tried to reproduce the issue on your website but I wasn't able to use the PayPal Checkout payment plugin. Could you provide precise instructions to be able to do so ?

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

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

Less More

- Posts: 173
- Thank you received: 8
-
-

3 years 3 months ago [\#353332](#353332) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  Replied by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")* on topic *[PayPal Checkout - problems with cancel return and purchase](/forum/35-orders-management/906679-paypal-checkout-problems-with-cancel-return-and-purchase#353332 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : Latest -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : No Error, just problems :-(  Hi, I'm having an issue with the new PayPal checkout, if I cancel from PayPal, the status stays at created, and I'm not redirected back to the checkout, I'm just dropped back to the PayPal button. Similarly if I complete an order it doesn't update the status to confirmed just stays at created?  Any ideas, Thanks Ian")*

Hi Nicolas,
No filters on my email system, all emails come to me as a catch all. I got this reply email... Very strange.
I did see you had done a test on the live site.
I'm currently live/testing in the Joomla4 subfolder... I'll PM you with the link again.

Thanks
Ian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50LzkwNjY3OS1wYXlwYWwtY2hlY2tvdXQtcHJvYmxlbXMtd2l0aC1jYW5jZWwtcmV0dXJuLWFuZC1wdXJjaGFzZT90bXBsPW1hcmtkb3du) 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: 86316
- Thank you received: 14276
-
-

3 years 3 months ago [\#353336](#353336) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Checkout - problems with cancel return and purchase](/forum/35-orders-management/906679-paypal-checkout-problems-with-cancel-return-and-purchase#353336 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : Latest -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : No Error, just problems :-(  Hi, I'm having an issue with the new PayPal checkout, if I cancel from PayPal, the status stays at created, and I'm not redirected back to the checkout, I'm just dropped back to the PayPal button. Similarly if I complete an order it doesn't update the status to confirmed just stays at created?  Any ideas, Thanks Ian")*

Hi,

Everything looks fine on the frontend side of things. I can see that the user is first redirected to the standard HikaShop cancel order URL, which should first cancel the order and then redirects to the URL you specified in the payment method.
So if the order is not being cancelled, It's not a problem with the plugin, but an order status configuration issue I think.
Could you provide a screenshot of what you have in the System&gt;Order statuses menu ?

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

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

Less More

- Posts: 173
- Thank you received: 8
-
-

3 years 3 months ago [\#353339](#353339) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  Replied by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")* on topic *[PayPal Checkout - problems with cancel return and purchase](/forum/35-orders-management/906679-paypal-checkout-problems-with-cancel-return-and-purchase#353339 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : Latest -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : No Error, just problems :-(  Hi, I'm having an issue with the new PayPal checkout, if I cancel from PayPal, the status stays at created, and I'm not redirected back to the checkout, I'm just dropped back to the PayPal button. Similarly if I complete an order it doesn't update the status to confirmed just stays at created?  Any ideas, Thanks Ian")*

Hi Nicolas,
Here is the requested Order Status screen.

[ ![OrderStatusScreen&#95;2023-07-12-2.png](/forum/attachment/57370) ](/forum/attachment/57370 "...23-07-12-2.png")

Thanks
Ian

- [ ![OrderStatusScreen&#95;2023-07-12.png](/forum/attachment/57369) ](/forum/attachment/57369 "...2023-07-12.png") [ ](/forum/attachment/57369?download=1 "...2023-07-12.png")
- [ ![OrderStatusScreen&#95;2023-07-12-2.png](/forum/attachment/57370) ](/forum/attachment/57370 "...23-07-12-2.png") [ ](/forum/attachment/57370?download=1 "...23-07-12-2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50LzkwNjY3OS1wYXlwYWwtY2hlY2tvdXQtcHJvYmxlbXMtd2l0aC1jYW5jZWwtcmV0dXJuLWFuZC1wdXJjaGFzZT90bXBsPW1hcmtkb3du) 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: 86316
- Thank you received: 14276
-
-

3 years 3 months ago [\#353340](#353340) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Checkout - problems with cancel return and purchase](/forum/35-orders-management/906679-paypal-checkout-problems-with-cancel-return-and-purchase#353340 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : Latest -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : No Error, just problems :-(  Hi, I'm having an issue with the new PayPal checkout, if I cancel from PayPal, the status stays at created, and I'm not redirected back to the checkout, I'm just dropped back to the PayPal button. Similarly if I complete an order it doesn't update the status to confirmed just stays at created?  Any ideas, Thanks Ian")*

Hi,

That's the issue. The "created" status needs to be enabled either in the "unpaid" column or in the "cancellable" column (or both).
Since it is disabled in both, the status is not changed to cancelled by HikaShop and it just redirects to the checkout.
Note that by default "created" is enabled under the "unpaid" column.

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

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

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

Less More

- Posts: 173
- Thank you received: 8
-
-

3 years 3 months ago [\#353343](#353343) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  Replied by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")* on topic *[PayPal Checkout - problems with cancel return and purchase](/forum/35-orders-management/906679-paypal-checkout-problems-with-cancel-return-and-purchase#353343 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : Latest -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : No Error, just problems :-(  Hi, I'm having an issue with the new PayPal checkout, if I cancel from PayPal, the status stays at created, and I'm not redirected back to the checkout, I'm just dropped back to the PayPal button. Similarly if I complete an order it doesn't update the status to confirmed just stays at created?  Any ideas, Thanks Ian")*

Thanks Nicolas,
Not sure how that ever got changed as it wasn't something I ever did anything with? That's why it isn't working in live either, it just stopped one day.
I think the owner of the website was probably fiddling with stuff!!
Thanks again,
Ian

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

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

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

[](#top)
