We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) 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