Skip to content
Snippets Groups Projects
Commit 4abc47cd authored by Primoz Hmeljak's avatar Primoz Hmeljak
Browse files

by Primsi: remove helper generateDatatransKey because no longer needed.

parent 6bec668e
Branches
Tags
No related merge requests found
......@@ -11,26 +11,6 @@ use Drupal\Core\Site\Settings;
*/
class DatatransHelper {
/**
* Used for generation an internal key for validation purposes.
*
* @param PaymentInterface $payment
* Payment Interface.
*
* @return string
* The generated key.
*/
public static function generateDatatransKey(PaymentInterface $payment) {
$hash_parts = [
$payment->id(),
$payment->getPaymentGatewayId(),
Settings::getHashSalt(),
\Drupal::service('private_key')->get(),
];
return Crypt::hashBase64(implode('', $hash_parts));
}
/**
* Generates the server side sign to compare with the datatrans post data.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment