Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is VPSSignature utilised? #31

Closed
losttheplot opened this issue Nov 5, 2014 · 4 comments
Closed

Is VPSSignature utilised? #31

losttheplot opened this issue Nov 5, 2014 · 4 comments

Comments

@losttheplot
Copy link

Hi, given that this class is not yet complete, does it carry out the md5 hash check using VPSSignature, please?

@judgej
Copy link
Member

judgej commented Nov 5, 2014

Yes, it's in Academe\SagePay\Server::notification(), see here https://github.com/academe/SagePay/blob/master/src/Academe/SagePay/Server.php#L213

It checks there whether the notification has been tampered with, before accepting the results it provides. It means that SagePay can send the results of the transaction to your site over a HTTP channel (you don't need a HTTPS certificate on your server, though obviously it is desirable to have one for other user interaction with your site).

@judgej
Copy link
Member

judgej commented Nov 5, 2014

The example of a callback controller that calls notification() is on the main readme https://github.com/academe/SagePay

@losttheplot
Copy link
Author

Thanks, and I'm sorry to trouble you - I should have searched harder before posting.

@judgej
Copy link
Member

judgej commented Nov 5, 2014

Not a problem at all :-) Glad to see the package being useful, and more questions can only lead to improvements to the code or the documentation.

@judgej judgej closed this as completed Nov 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants