checkoutCompleteFree method

Future<void> checkoutCompleteFree(
  1. String checkoutId
)

Complete Checkout without providing payment information. You can use this mutation for free items or items whose purchase price is covered by a gift card

Implementation

Future<void> checkoutCompleteFree(
  String checkoutId,
) async {
  final MutationOptions _options = MutationOptions(
      document: gql(checkoutCompleteFreeMutation),
      variables: {'checkoutId': checkoutId});
  final QueryResult result = await _graphQLClient!.mutate(_options);
  checkForError(
    result,
    key: 'checkoutCompleteFree',
    errorKey: 'checkoutUserErrors',
  );
}