AbanteCart Community

AbanteCart Development => Extensions and Add-Ons => Payment Modules => Topic started by: Ruddog on August 24, 2017, 09:58:52 AM

Title: Worldpay extension NOT working
Post by: Ruddog on August 24, 2017, 09:58:52 AM
The payemnt extension WORLDPAY does not work. If anybody in the community can assist in correcting this error would be appreciated. Looks like the extension module does not direct you to the correct website for secure payments.
Going to worldpay's website also show NO option for Abantecart as being compatible.
Title: Re: Worldpay extension NOT working
Post by: Basara on August 25, 2017, 03:53:44 AM
Hello.

What error you see?
What is your AbanteCart version?
Do you have an account with worldpay?
Title: Re: Worldpay extension NOT working
Post by: abantecart on August 27, 2017, 02:51:59 PM
I think this is trolling post.
Title: Re: Worldpay extension NOT working
Post by: featurespoon on October 20, 2017, 06:55:14 PM
I've successfully made the Worldpay extension work in Abantecart 1.2.9.  I had to make a few changes to the code, and compose some new templates (and some dummy files) but it is now working.
Title: Re: Worldpay extension NOT working
Post by: abantecart on October 20, 2017, 07:10:24 PM
featurespoon, can you please share what you have done? Should we consider this changes in the core?
Feel free to create a pull request in github with your changes.

Title: Re: Worldpay extension NOT working
Post by: featurespoon on October 21, 2017, 12:55:53 AM
I'm happy to do so, even though I'm new to github.  However the Worldpay extension was dropped in 1.2.11.  So does this mean that I have put into the Pull Request the entire (amended) extension?
Title: Re: Worldpay extension NOT working
Post by: featurespoon on October 21, 2017, 06:47:41 AM
I have raised an issue in github relating to Worldpay, asking for Worldpay to be reinstated in Abantecart core. I'm not bothering with github any further.  Please find attached a zip file with the revised Worldpay extension. I have not updated the russian and spanish languages as I have no knowledge of them, but otherwise I think it is complete, with some help on how to set up in Worldpay Business Manager.

I don't know how you're going to test this, but I'd be interested in how you get on.
Title: Re: Worldpay extension NOT working
Post by: abantecart on October 21, 2017, 10:11:30 AM
Thank you. We will take a look.
Title: Re: Worldpay extension NOT working
Post by: Mint Online on March 20, 2019, 07:27:42 AM
Hi, can anyone confirm if the replacement extension works?

We are struggling with WorldPay too and the extension that is part of the core still direct to the wrong submission URL. WorldPay have confirmed the submission URL should be secure.worldpay.com/wcc/purchase as opposed to select.worldpay.com/wcc/purchase

Alternatively, can I just change the submission URL in the extension code without any adverse affects?

Thanks
Title: Re: Worldpay extension NOT working
Post by: featurespoon on March 20, 2019, 11:37:46 AM
Yes, make that change. You should find that it works, now.
We need to record that change with Abantecart.  Can someone tell me how to do that?
Title: Re: Worldpay extension NOT working
Post by: Mint Online on March 20, 2019, 11:45:03 AM
Thanks featurespoon, should I look to make the change in the Abantecart files, or in the version you made available to download?
Title: Re: Worldpay extension NOT working
Post by: featurespoon on March 20, 2019, 11:59:47 AM
Can you make the change to the files you have and are using?   That is

in Storefront/controller/responses/extension/default_worldpay.php
line 40 change
$this->data['action'] = 'https://select.worldpay.com/wcc/purchase';
to
$this->data['action'] = 'https://secure.worldpay.com/wcc/purchase';

Hopefully Abantecart will make the updated extension available at some point.  By the way, I don't know what version of Abantecart you are using but I have only tested it on version 1.2.9.
If you still have problems let me know.
Title: Re: Worldpay extension NOT working
Post by: Mint Online on March 20, 2019, 12:23:45 PM
Yes I can make changes to those files, although I still need to make a few changes to get the Installation activated in Business Manager.

I'm using version 1.2.13 and it seems like they updated the URL for test transactions but not production.

What should the URL format be for the payment response?

Thanks
Title: Re: Worldpay extension NOT working
Post by: featurespoon on March 20, 2019, 12:42:21 PM
The response of the gateway is to invoke the callback in the extension.  So the URL is your online shop!  The return data indicates whether the payment was successful or not. If so the order is recorded and the appropriate page in the rest of the online shop is brought up.
Title: Re: Worldpay extension NOT working
Post by: Mint Online on March 21, 2019, 04:42:06 AM
I appreciate the URL is the online shop, but I assume it has to be a specific URL that is part of the WorldPay extension?
Title: Re: Worldpay extension NOT working
Post by: featurespoon on March 21, 2019, 10:49:10 AM
That's correct. It's set up inside the Worldpay extension and references a function in the extension (called 'callback'!) and you don't need to worry about it. This address is passed over to the gateway together with other payment-related data so that the gateway can return the results of the attempt at card payment.
Title: Re: Worldpay extension NOT working
Post by: Mint Online on March 21, 2019, 11:10:59 AM
OK that's fine then, there is nothing to complete in the WorldPay Business Manager then. Hopefully once they approve everything it will be good to go now then.
Title: Re: Worldpay extension NOT working
Post by: tomgormley08 on March 25, 2020, 07:57:39 PM
I uploaded the extension to the extensions folder but its not being listed as an extension. I also tried changing the extension folder name from public_worldpay to default_worldpay.