buySubscriptionMySubscribeStripePostWithHttpInfo method

Future<Response> buySubscriptionMySubscribeStripePostWithHttpInfo(
  1. SubscribeRequestSchema subscribeRequestSchema, {
  2. Future<void>? abortTrigger,
})

Subscribe with Stripe

Subscribe to become a member and unlock the benefits tied to your selected plan. You will receive a secure Stripe checkout URL to complete the payment.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> buySubscriptionMySubscribeStripePostWithHttpInfo(
  SubscribeRequestSchema subscribeRequestSchema, {
  Future<void>? abortTrigger,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/my/subscribe/stripe';

  // ignore: prefer_final_locals
  Object? postBody = subscribeRequestSchema;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    abortTrigger: abortTrigger,
  );
}