paypal


Opencart 2.0.1.1 - 'Status=INVALID StatusDetail= Cannot match the MD5 Hash. Order might be tampered with.'


We're attempting to use the SagePay Server functionality inside Opencart, when making a purchase via this route (and selecting PayPal), we are getting this error response:
Status=INVALID StatusDetail= Cannot match the MD5 Hash. Order might be tampered with.
This is occurring at line 346 in /catalog/controller/payment/sagepay_server.php
Note, the transaction is still actually successful - but it's just the user is not returned back properly to the site.
The screen the user sees states:
Server Error 5006: Unable to redirect to Vendor's web site. The vendor failed to provide a RedirectionURL.
Has anybody came across this error before? There is a lot of information about the 5006 error, but it seems the route of our issue is the MD5 Hash not being matched.
Any help is greatly appreciated!
The VPSSignature you generate via the MD5 Hash must match the VPSSignature generated by Sage Pay. Ensure the information returned by Sage Pay matches up with the contents of string being but through the MD5 Hash.
Check for if you are using the Suhosin security extension, as there is the setting suhosin.get.max_value_length that is defaulted to 512. As the md5 hash is passed in the URL, if the total characters of the URL exceeds 512, it is truncated, therefore causing a mismatch of the string.

Related Links

PayPal - OAuth2 API Access?
Auto-Return to Site After Payment
Credit card payment without address line 1, city, and state?
Paypal sandbox redirect to homepage for Safari
I can't pay with Paypal through WooCommerce
Custom Payment IPN notify_url
Do I need IPN for processing preapproved payments?
How do I take 10% fee of paypal trasaction
PayPal Auto Return not working
PayPal ipn notification request not sending
Can Paypal Payments Standard accept a value and pass it along to the webpage users are redirected to after successful payment?
How to enable internet banking payment method for my PayPal sandbox account?
PayPal Subscription Cancellation from Merchant Website
Unable to upgrade to Pro Account - Paypal Sandbox
Example of paypal integration [closed]
IPN PAYPAL - Invalid Tests

Categories

HOME
rest
payment-gateway
vhdl
wmic
bower
translation
vs-team-services
qpython3
docker-swarm
safari
httpclient
eval
dropbear
android-viewpager
click
x11
pjsip
nixos
cortex-a
gatsby
finite-group-theory
mongodb-query
squarespace
cratedb
scaling
movies
jquery-form-validator
profile
myob
novnc
searchbar
geopandas
kong
emv
solidworks
weinre
thinking-sphinx
cortex-m3
mangodb
configure
cell-array
protobuf-net
picturebox
transient
reactivemongo
nlb
mms
forecasting
axis-labels
intellilock
productivity
stereo-3d
android-maps-v2
archer
proof
web-deployment-project
pinvoke
openh264
crash-reports
forerunnerdb
execl
in-memory-database
android-navigationview
tomee
rstudio-server
gameanalytics
zurb-foundation-apps
boost-hana
com-interop
kendo-combobox
clob
windows-vista
graphical-logo
stackframe
hg-git
hana-xs
pisa
tilestache
utf-32
cloudpebble
kendo-mvvm
node-inspector
yahoo-boss-api
code-testing
ifft
joox
visualstatemanager
android-json-rpc
operations
fogbugz-api
windows-update
abnf
css-tables
blockingqueue
sunspot-rails
getstring
querystringparameter
newsstand-kit
zend-form-element
jquery-ui-button
multibyte-functions
visual-studio-2010-beta-2
winsnmp
visual-studio-dbpro

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App