handlePaymentClick method
Implementation
Future<void> handlePaymentClick() async {
payButtonLoading = true;
try {
StartCheckoutResponse response = await _payment(paymentData);
callBack(response);
} catch (e) {
showError(
e.toString(),
"msgError",
"payButton",
);
printDev(e);
} finally {
payButtonLoading = false;
}
}