initializePayment static method

Future initializePayment(
  1. dynamic params, {
  2. String gateway = "stripe",
})

Implementation

static Future<dynamic> initializePayment(var params,
    {String gateway = "stripe"}) async {
  String url =
      "${AppUrls.baseUrlVCHARGE}/subscriber/v1/payment/init/$gateway";

  final response = await _dio!.post(url, data: params);
  return response.data;
}