$file = $this->mapper->classToPath($paymentClass);
if (!file_exists($file)) {
CRM_Core_Session::setStatus(ts('Failed to load file (%3) for payment processor (%1) while running "%2"', [
- 1 => $info->key,
- 2 => $method,
- 3 => $file,
- ]), '', 'error');
+ 1 => $info->key,
+ 2 => $method,
+ 3 => $file,
+ ]), '', 'error');
return;
}
else {
}
catch (CRM_Extension_Exception $e) {
CRM_Core_Session::setStatus(ts('Failed to determine file path for payment processor (%1) while running "%2"', [
- 1 => $info->key,
- 2 => $method,
- ]), '', 'error');
+ 1 => $info->key,
+ 2 => $method,
+ ]), '', 'error');
return;
}
// Does PP implement this method, and can we call it?
if (method_exists($processorInstance, $method) && is_callable([
- $processorInstance,
- $method,
- ])
- ) {
+ $processorInstance,
+ $method,
+ ])) {
// If so, call it ...
$processorInstance->$method();
}