createSubscription method
Implementation
Future<http.Response> createSubscription(
SubscriptionRequest subscriptionRequest, String key) async {
var paymentLink = PaymentLink();
var url = Constant.baseURL + Constant.createSubscription;
final response = await http.post(Uri.parse(url),
body: json.encode(subscriptionRequest.toMap()),
headers: {
"Content-Type": "application/json",
"accept": "application/json",
"x-api-key": key
});
return response;
}