Transaction Failed: 2013 : The Transaction was cancelled by the customer.

  • Posts: 48
  • Thank you received: 5
4 years 1 week ago #325802

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.22


Hello there,

I'm using the Sage Pay plugin and I'm conducting my initial test orders. The SagePay plugin has options to provide a "cancelled" and "return" URL.

However, when my cancelled page is displayed, an alert message box is also displayed at the top of the article. I feel this is unnecessary, as I understand the URL is only for a transaction which has been cancelled by the customer - and my article handles this.

How can I stop this message from being displayed within my article? The text is not in the Language file, so maybe it's being passed by SagePay?
"
Transaction Failed: 2013 : The Transaction was cancelled by the customer.
"
Many thanks
Marcus

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 5
4 years 1 week ago #325804

In addition to the original question - can I confirm what the work flow should be ?
- customer finishes the checkout process on the website
- customer is sent a "new order email" email saying "Your order will be processed as soon as your payment is received."
- however the customer then cancels the transaction during the following Sage Pay payment phase.
- the customer is directed back to the website and the "cancelled" url.
- but the customer doesn't receive any further emails.

In this situation, the customer only receives a "new order email" - shouldn't they also receive a cancelled order email?

Many thanks
Marcus

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 1 week ago #325811

Hello,

What is the order status in your HikaShop backend ?
Can you please provide a screenshot of your payment configuration (you can blank your credentials).

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 5
3 years 11 months ago #327628

Hello - apologies for the late reply. I've attached an image from the SagePay configuration screen.

Thanks for your help,
Marc

Attachments:
Last edit: 3 years 11 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 11 months ago #327674

Hello,

Regarding the question :

What is the order status in your HikaShop backend ?

You didn't provide the information so I can't tell you more regarding the email notifications.

But regarding the message that the customer can see in the page ; for the moment it requires to modify the plugin in order to remove (comment) a line:
$this->app->enqueueMessage('Transaction Failed: '.$vars['StatusDetail']);
You will find the file under : plugins/hikashoppayment/sagepay/sagepay.php
By removing the line (or commenting it, by adding two slashes at the beginning of the line) ; the display of the message will be avoid.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 3 years 11 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 5
3 years 11 months ago #327675

Hi there,

Regarding why there's no cancellation email - can you please be more specific with the information you need.
I assumed the "your payment configuration" that you wanted to see was the SagePay configuration screen - which I included. Could you please describe which screen you'd like me to include?

As for the SayPage error message - commenting out the line is not the greatest fix, as I assume as soon as the component is updated, the fix will be lost. If the SagePay component has a "cancellation URL" field to allow the developer to handle that state - why does it also plaster a message over the page which will surely worry the end user? There's no need for it.

Many thanks
Marc

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
3 years 11 months ago #327715

Hello,

What is the order status in your HikaShop backend ?

We need to see the "order history" of your test order which is available in your HikaShop backend.

Regarding the plugin modification, it is a fast and small patch for you and we'll update the plugin with an improvement in order to not display the "user cancel" message but still display other messages returned by the SagePay gateway.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum