I use a third-party credit card processing service (Paybox), which after a successful transaction redirects back to the site with a signature in the URL as a security measure so that people can not manipulate the data. He must prove that the request originated from this service. So my success url looks something like this:
/success.php?signature= [HUGE HASH]
I don’t know where to start by checking this signature. This service provides a public key, and I assume that I need to create a private key, but I do not know much of this.
I am very good at Linux, and I know that I will need to run some openssl commands. I am writing a script check in PHP, which also has its own openssl () functions.
If someone could push me in the right direction with some pseudo-code or even functional code, I would be very grateful. Thank.
source
share