createPurchaseByCardOnFileStripe method

Future<List<PaymentInfoModel>> createPurchaseByCardOnFileStripe(
  1. PaymentRequestModel request
)

Implementation

Future<List<PaymentInfoModel>> createPurchaseByCardOnFileStripe(
    PaymentRequestModel request) async {
  // var params = {
  //   'purchaseType': 90,
  //   'currency': currency,
  //   'tokenType': tokenType,
  //   'priceByUnit': priceByUnit,
  //   'amount': amount,
  //   'cardId': cardId,
  // };
  NetworkResponse response =
      await _api.createPurchaseByCardOnFileStripe(request.toJson());
  return response.data ?? [];
}