payWithCard method

Future<Response> payWithCard(
  1. PayData payData
)

Implementation

Future<Response> payWithCard(PayData payData) async {
  final wifiIP = await info.getWifiIP();
  payData.customer?.ip = wifiIP ?? "5.62.60.255";
  var response =
      await _dio.post("/api/payments/create", data: payData.toJson());
  return response;
}