remove error messages from payment service
This commit is contained in:
@@ -11,8 +11,7 @@ class PaymentService {
|
|||||||
Future<PaymentResponse> processQuickPayWithinBank(Transfer transfer) async {
|
Future<PaymentResponse> processQuickPayWithinBank(Transfer transfer) async {
|
||||||
try {
|
try {
|
||||||
await Future.delayed(const Duration(seconds: 3)); // Simulate delay
|
await Future.delayed(const Duration(seconds: 3)); // Simulate delay
|
||||||
final response =
|
await _dio.post('/api/payment/transfer', data: transfer.toJson());
|
||||||
await _dio.post('/api/payment/transfer', data: transfer.toJson());
|
|
||||||
|
|
||||||
return PaymentResponse(
|
return PaymentResponse(
|
||||||
isSuccess: true,
|
isSuccess: true,
|
||||||
@@ -20,8 +19,6 @@ class PaymentService {
|
|||||||
creditedAccount: transfer.toAccount,
|
creditedAccount: transfer.toAccount,
|
||||||
amount: transfer.amount,
|
amount: transfer.amount,
|
||||||
currency: "INR",
|
currency: "INR",
|
||||||
errorMessage: response.data['errorMessage'],
|
|
||||||
errorCode: response.data['errorCode'],
|
|
||||||
);
|
);
|
||||||
} on DioException catch (e) {
|
} on DioException catch (e) {
|
||||||
log('DioException: ${e.toString()}');
|
log('DioException: ${e.toString()}');
|
||||||
|
Reference in New Issue
Block a user