From 7c173ae292fead0b162b0925f96d82f1415cfe7f Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 21 Aug 2024 15:38:06 +0200 Subject: [PATCH] parse for pop_allow_overpay --- library/src/configuration.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/src/configuration.cpp b/library/src/configuration.cpp index c481ad2..ad51d7c 100644 --- a/library/src/configuration.cpp +++ b/library/src/configuration.cpp @@ -606,6 +606,10 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json) if (k->value.IsInt()) { this->currentPaymentOptions.last().pop_minus_steps = k->value.GetInt(); } + } else if (strcmp(inner_obj_name, "pop_allow_overpay") == 0) { + if (k->value.IsBool()) { + this->currentPaymentOptions.last().pop_allow_overpay = k->value.GetBool(); + } } else if (strcmp(inner_obj_name, "pop_payment_method_id") == 0) { this->currentPaymentOptions.last().pop_payment_method_id = k->value.GetInt(); } else if (strcmp(inner_obj_name, "pop_day_end_time") == 0) {