resentEwalletOtpPayment method
Implementation
Future<IBinoxusPayOnResponse> resentEwalletOtpPayment(
{required String transactionId, required String token}) async {
try {
Map<String, String> headers = {
"mb-token": token,
};
String url = "/pay/sent-ewallet-payment-otp/$transactionId";
// _spinnerController.add(true);
final res = await getWithDio(url, headers: headers);
debugPrint('Response : $res');
IBinoxusPayOnResponse response = IBinoxusPayOnResponse.fromJson(res);
debugPrint("$response");
return response;
} catch (e, stack) {
// _spinnerController.add(false);
debugPrint('Error during fetch operations: $e');
debugPrint('Stack trace: $stack');
return IBinoxusPayOnResponse(
binStatus: EApiResponseStatusCode.bIN001,
amount: 0,
currency: '-',
customRef: '-',
paymentStatus: IPaymentStatus.fail,
title: "Oups !",
message:
"Une erreur est survenue lors de cette opération, veuillez réessayer",
systemRef: '');
}
}