public function WorldPayHelper::buildMd5Hash in Commerce Worldpay 8
Same name and namespace in other branches
- 8.2 src/Plugin/Commerce/PaymentGateway/WorldPayHelper.php \Drupal\commerce_worldpay\Plugin\Commerce\PaymentGateway\WorldPayHelper::buildMd5Hash()
Helper function for hashing of signature fields.
Parameters
array $signature_fields_values:
Return value
string
1 call to WorldPayHelper::buildMd5Hash()
- WorldPayHelper::createData in src/
Plugin/ Commerce/ PaymentGateway/ WorldPayHelper.php
File
- src/
Plugin/ Commerce/ PaymentGateway/ WorldPayHelper.php, line 125
Class
- WorldPayHelper
- Class WorldPayHelper Helper class for collecting form data.
Namespace
Drupal\commerce_worldpay\Plugin\Commerce\PaymentGatewayCode
public function buildMd5Hash(array $signature_fields_values) {
return md5($this->config['payment_security']['md5_salt'] . ':' . implode(':', $signature_fields_values));
}