Commit e2a53227 authored by rubofvil's avatar rubofvil Committed by sluc23
Browse files

Configure terminal for Bizum

parent 4c9bdac9
......@@ -54,12 +54,16 @@ class CRM_Redsys_Form_Settings extends CRM_Core_Form {
public function getPaymentProcessors() {
// Get the Redsys payment processor type.
$redsysName = ['name' => 'Redsys'];
$paymentProcessorType = civicrm_api3('PaymentProcessorType', 'getsingle', $redsysName);
$paymentProcessorTypes = civicrm_api3('PaymentProcessorType', 'get', ['name' => ['IN' => ["Redsys", "Bizum"]]]);
$paymentProcessorTypesIds = [];
foreach ($paymentProcessorTypes["values"] as $paymentProcessorType) {
$paymentProcessorTypesIds[] = $paymentProcessorType["id"];
}
// Get the payment processors of Redsys type.
$redsysType = [
'payment_processor_type_id' => $paymentProcessorType['id'],
'payment_processor_type_id' => ['IN' => $paymentProcessorTypesIds],
'is_active' => 1,
];
$paymentProcessors = civicrm_api3('PaymentProcessor', 'get', $redsysType);
......
......@@ -2,6 +2,7 @@
### v2.3.1 ###
- Configure the `merchant terminal` for **Bizum**.
- Fix bug on upgrade hook execution.
### v2.3.0 ###
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment