We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit ddd4571d authored by attilak's avatar attilak

Fix request

parent 7bf173e6
......@@ -158,7 +158,7 @@ class AdyenInitiateTerminalApi implements AdyenInitiateTerminalApiInterface
];
if (!empty($payload['number_of_installments'])) {
$request['SaleToPOIRequest']['PaymentData'] = [
$request['SaleToPOIRequest']['PaymentRequest']['PaymentData'] = [
"PaymentType" => "Instalment",
"Instalment" => [
"InstalmentType" => "EqualInstalments",
......
......@@ -176,7 +176,7 @@ define(
* @returns {boolean}
*/
isButtonActive: function () {
return this.isActive() && this.getCode() == this.isChecked();
return this.isActive() && this.getCode() == this.isChecked() && this.getConnectedTerminals().length > 0 && this.validate();
},
});
}
......
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