statusPay method
Implementation
@override
Future<bool> statusPay() async {
bool isPaid = false;
if (_selectPaymentMethod != null &&
_selectPaymentMethod != PaymentMethodEntity.termianlSber) {
isPaid = await payYookassa.statusPayAfterCapture();
} else if (_selectPaymentMethod == PaymentMethodEntity.termianlSber) {
isPaid = ((await payTerminal.checkStatusCurrentOperation()) ?? '')
.contains('оплачено');
} else {
isPaid = false;
}
return isPaid;
}