showDialogForPaymentAlert method
Payment Dialog Alert
Implementation
Future<void> showDialogForPaymentAlert() async {
Future.delayed(const Duration(milliseconds: 100), () {
Helper.paymentProcessingPopUpDialog(
headingText: localization.translate("paymentProcessing"),
subHeading: localization.translate("paymentProcessingMsg"),
onTapContinue: () async {
//Checking status and place order.
Helper.close();
isDiscardPayment = false;
await callPaymentTransactionStatusApi(
paymentCreateTransactionId.value,
true,
false,
isClickBack: false,
isClickPaymentContinue: true,
);
startApiPolling(paymentCreateTransactionId.value);
},
onTapCancel: () async {
//Go to cart view screen.
isDiscardPayment = true;
Helper.close();
await callPaymentTransactionStatusApi(
paymentCreateTransactionId.value,
true,
true,
isClickBack: false,
isClickPaymentContinue: true,
);
Helper.close();
stopApiPolling();
},
);
});
}