function _commerce_sagepay_base64Decode in Drupal Commerce SagePay Integration 7
Decode SagePay response.
Parameters
string $scrambled: The encoded string.
Return value
string The decoded string.
File
- includes/
commerce_sagepay_utils.inc, line 159 - commerce_sagepay_utils.inc Common utilities shared by all Integration methods.
Code
function _commerce_sagepay_base64Decode($scrambled) {
$corrected = str_replace(" ", "+", $scrambled);
$output = base64_decode($corrected);
return $output;
}