Fix payments with zero tips.
This commit is contained in:
parent
e6ba6050e7
commit
0188719d04
|
@ -566,7 +566,8 @@ void CheckoutProcess::getPasswordState(
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckoutProcess::panelChooseShippingOption() {
|
void CheckoutProcess::panelChooseShippingOption() {
|
||||||
if (_submitState != SubmitState::None) {
|
if (_submitState != SubmitState::None
|
||||||
|
&& _submitState != SubmitState::Validated) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
chooseShippingOption();
|
chooseShippingOption();
|
||||||
|
@ -578,7 +579,8 @@ void CheckoutProcess::panelChangeShippingOption(const QString &id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckoutProcess::panelChooseTips() {
|
void CheckoutProcess::panelChooseTips() {
|
||||||
if (_submitState != SubmitState::None) {
|
if (_submitState != SubmitState::None
|
||||||
|
&& _submitState != SubmitState::Validated) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
chooseTips();
|
chooseTips();
|
||||||
|
|
|
@ -476,7 +476,7 @@ void Form::submit() {
|
||||||
| (_shippingOptions.selectedId.isEmpty()
|
| (_shippingOptions.selectedId.isEmpty()
|
||||||
? Flag(0)
|
? Flag(0)
|
||||||
: Flag::f_shipping_option_id)
|
: Flag::f_shipping_option_id)
|
||||||
| (_invoice.tipsSelected ? Flag::f_tip_amount : Flag(0))),
|
| (_invoice.tipsMax > 0 ? Flag::f_tip_amount : Flag(0))),
|
||||||
MTP_long(_details.formId),
|
MTP_long(_details.formId),
|
||||||
_peer->input,
|
_peer->input,
|
||||||
MTP_int(_msgId),
|
MTP_int(_msgId),
|
||||||
|
|
Loading…
Reference in New Issue