Worldpay Business Gateway: The test mode value is invalid

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 7 months ago #351011

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 4.2.9
-- PHP version -- : 8.1.17
-- Browser(s) name and version -- : Chrome 112.0.5615.121

Trying to set up the plugin for Worldpay Business. I have set the Test Mode switch to Yes. There are several problems:-
1. The page does not automatically redirect to Worldpay.
2. The button to manually go to Worldpay has no text or image.
3. The Worldpay page (attached) says the test mode is invalid.
Worldpay support says the test mode parameter should be 0 for a live transaction, or 100 for a test.
The Debug information produced by the plugin shows testMode with the value of CAPTURED. According to the Worldpay documentation, that is one value that can be put in the Name parameter if the test mode is set to 100.
Some of the above could be down to incorrect configuration on my part (eg the button image/text as I have just left the default value in there), but I think the test mode setting is likely to be a bug in the plugin. As Worldpay want to see successful test transactions before they will allow use of the live service, this needs to be sorted out before we can move forward.

Attachments:

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
1 year 7 months ago #351012

Hello,

In order to better understand the situation, we will need these elements :
- Url link (that allow us to experience your current issue)
- Your Worldpay Business settings screenshot
- A step by step process to reproduce your issue.

Note : If for a reason or another, you don't want to provide these elements directly in this topic, please us our Contact us form and don't forget to add an Url link to this topic.

Regards

Last edit: 1 year 7 months ago by Philip.

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 7 months ago #351077

Hi Philip,
I have just sent you a message using the Contact us form. The site is guncraftltd.uk.
Thanks!

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
1 year 7 months ago #351087

Hello,

Sorry for this return but for a reason or another we didn't receive your elements in our Contact us mail...
We have checked the spam box and nothing, can you process a new send please?

Once again, sorry for this return.
Regards

Last edit: 1 year 7 months ago by Philip.

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 7 months ago #351095

Will do.

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
1 year 7 months ago #351098

Hello,

Please provide here the payment method setting screenshot to complete elements.
AND active the debug mode in your Worldpay method, this will allow to give us more clue in the log file .

Awaiting your returns.
Regards

Last edit: 1 year 7 months ago by Philip.

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 7 months ago #351134

Hi,
Unfortunately the screen photos I have been sent are not of sufficient quality to be any use, I'll try to get some better ones.
I am unsure what you mean by "the debug mode in your Worldpay method" - is this the Debug setting in the Specific Configuration section of the Worldpay Plugin? If so, it is already set to Yes.
Thanks

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 7 months ago #351141

OK, here is the screen from the Worldpay setup:

Attachments:

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
1 year 7 months ago #351144

Hello,

Then you can provide the log file via our Contact us (as attachment, email address : This email address is being protected from spambots. You need JavaScript enabled to view it.), and we will need to see your Worldpay settings screenshot (payment method form) in HikaShop settings see my screenshot :



Don't forget to add an Url link to this topic in your Contact us message.

Regards

Last edit: 1 year 7 months ago by Philip.

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 7 months ago #351186

Hi Philip,
I emailed the requested information last night, any progress?

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
1 year 7 months ago #351188

Hello,

Sorry but once again we didn't receive your email... We don't really have any idea why this problem is repeated...
And so unfortunately we invite you to send again the email.

We are very sorry for this inconvenience, and in order not to waste time dealing with your subject, notify us by posting a message here in our forum.

Regards

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 7 months ago #351196

Philip,
I have just resent the email to This email address is being protected from spambots. You need JavaScript enabled to view it.

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
1 year 6 months ago #351218

Hello,

For a reason or another, your email were received in our spam box, really sorry for this, but this should now be fixed.
This will therefore have better fluidity and less waste of time in our exchanges.

And now, we are going to have to go to the next step because unfortunately your elements do not allow us to progress, so provide via email :
- Url link to your backend access
- Backend user references (with maximum ACL)

Regards

Last edit: 1 year 6 months ago by Philip.

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 6 months ago #351246

I send the requested email almost 7 hours ago, and have heard nothing since. Please confirm that you have received it.

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
1 year 6 months ago #351257

Hello,

It seems that your Worldpay plugin didn't received any notification from Worldpay server.
On your Worldpay Merchant account did your orders are validated?

Other idea, on the your Worldpay Merchant account maybe there is log error or support that can bring us some clues.
But first tell us if the orders are confirmed or not in your Merchant account.

Regards

Last edit: 1 year 6 months ago by Philip.

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 6 months ago #351262

The worldpay server doesn't send any response because, as I said at the beginning, the request it is sent by the plugin has an error in the TestMode parameter. It cannot validate the order because there is an error in the request.
As I said at the beginning, Worldpay support have confirmed this. Of the 3 problems I identified and told you about over a week ago now, 2 of them are before the plugin even sends the order to Worldpay. As a reminder,
1. The page does not automatically redirect to Worldpay.
2. The button to manually go to Worldpay has no text or image.
3. The Worldpay page (see original post) says the test mode is invalid.
Worldpay support says the test mode parameter should be 0 for a live transaction, or 100 for a test. I am trying to perform a test transaction, as Worldpay won't enable live transactions until they see a successful series of tests.
The Debug information produced by the plugin shows testMode with the value of CAPTURED. According to the Worldpay documentation, that is one value that can be put in the Name parameter IF the test mode is set to 100.

If I knew enough about how the plugin gets stuff done I'd see about changing the testMode parameter, but I don't.

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 6 months ago #351272

Well, It seems I know a little more about it now.
File /plugins/hikashoppayment/bf_rbsbusinessgateway/bf_rbsbusinessgateway.php:
Lines 203-206:

if (!empty($method->payment_params->testMode) ) {
			$vars['testMode'] = '100';
			$vars['testMode'] = 'CAPTURED';
		}
Changed to:
if (!empty($method->payment_params->testMode) ) {
			$vars['testMode'] = '100';
			$vars['name'] = 'CAPTURED';
		}
and the Worldpay error goes away. You're welcome.
However, this leaves the problems that the payment method doesn't automatically redirect to Worldpay, and the button to do it manually is just a grey box.
Also, it is now apparent that the Worldpay process doesn't return the user to the Hikashop site that called it.

Last edit: 1 year 6 months ago by cliveg. Reason: Added CODE tags

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 6 months ago #351273

The forum editor has made a mess of the code I posted in. How do I tell it not to mess with the text?
OK, changed it now

Last edit: 1 year 6 months ago by cliveg.

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

  • Posts: 20
  • Thank you received: 1
  • Hikashop Business
1 year 6 months ago #351279

OK, so I've found a suitable Worldpay logo to put in the button.
The remaining problems are :-
1. The plugin page doesn't automatically redirect to the Worldpay page
2. The Worldpay page doesn't send the user back to our site.
However, the order status is updated from Created to Cancelled or Confirmed depending on the result of the Worldpay page.
This would indicate to me that the interface with Worldpay is probably working correctly, but there is still a problem or problems with the Hikashop processing around the payment plugin.
I need this to be sorted out quickly, now.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 6 months ago #351295

Hi,

Regarding www.hikashop.com/forum/payment-methods/9...-invalid.html#351272 that's an unfortunate error on our end. We pushed the wrong package on our website a while back. Thanks for catching the issue. We've pushed the correct package now, which already includes this change.

The automatic redirection is deactivated when the "show parameters" setting is activated.
This is done on purpose so that you have the time you need to look at the parameters output by the plugin.
Turn off this setting and the automatic redirection will work again.

Regarding the return to the website, make sure the debug setting in the payment method is deactivated so that it can output to the user the HTML to go back to the shop during the payment notification (callback).

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

Time to create page: 0.102 seconds
Powered by Kunena Forum