makePaymentLegacy method

Future<NetworkResponse<PaymentResponse>> makePaymentLegacy(
  1. PaymentRequest request
)

Legacy payment endpoint — kept for compatibility.

Implementation

Future<NetworkResponse<PaymentResponse>> makePaymentLegacy(
    PaymentRequest request) async {
  return _safeCall(() async {
    final resp =
        await _dio.post('/ezyCart/payment', data: request.toJson());
    return NetworkSuccess(
        PaymentResponse.fromJson(_requireJsonMap(resp.data)));
  });
}