VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: blackrat999 on April 05, 2019, 11:07:20 AM

Title: Sagepay and php 7.2
Post by: blackrat999 on April 05, 2019, 11:07:20 AM
In trying to update ecommerce sites to PHP7.2 i have come across an issue with ones that use the Sagepay plugin.
The version i have is fairly old anyway but im wondering if there is any point in trying to update it as everything i see suggests it wont work beyond 7.1 anyway. Currently working on 7.0 fine.

https://extensions.virtuemart.net/checkout/payments/sagepay-payments-detail  this one and a few others say similar:

"Please be aware that the new SagePay Protocol 3.00 requires the PHP mcrypt functionality with the Rijndael cipher. If your server does not have these included with PHP, you will not be able to use SagePay. You should check with your hosting company that this is included, or ask them to install it."

My hosts say:
"as of PHP 7.1, the php-mcrypt functionality was deprecated; and as of PHP 7.2 it was completely removed, so that extension is not available any more."

Does anyone have any further experience of getting a Sagepay plugin to work on more recent versions of PHP?

thanks

Title: Re: Sagepay and php 7.2
Post by: six gun on April 25, 2019, 17:20:26 PM
i contacted my host. The Tech didn't know anything about this. i am with siteground - what you can do with siteground is have different php running on different pages.
i have a plugin which crashes the site when it runs with the latest php but if i have the pages the plugin is running on with an earlier version it is fine - as it is there is only one page running with this plugin.
i don't think it is idea not running the latest php but it is a solution if your host provides that function.
Title: Re: Sagepay and php 7.2
Post by: blackrat999 on April 25, 2019, 17:36:40 PM
Thanks i can choose which PHP version i need to use the issue is that the sagepay plugin wont work on 7.2 and i would like it to.
If anyone has any ideas re this please let me know.
thanks
Title: Re: Sagepay and php 7.2
Post by: GJC Web Design on April 25, 2019, 18:13:36 PM
but won't it be for SagePay to change their accepted encryption at THEIR end...  I don't see u can do anything
Title: Re: Sagepay and php 7.2
Post by: blackrat999 on April 25, 2019, 18:21:40 PM
Ah ok i wasnt aware i assumed it was just something in the plugin that wasnt compatible?
Title: Re: Sagepay and php 7.2
Post by: GJC Web Design on April 26, 2019, 11:54:11 AM
if Sage only accept mcrypt functionality with the Rijndael cipher then that is what you need to send..

but find it hard to believe Sage won't change this at some point soon as 7.2 is used everywhere now..  have u asked?