checkout method

Future checkout(
  1. CheckoutModel checkout
)

Sends a CHECKOUT event payload to the Segmentify API. The payload parameter is required and represents the event payload to be sent. Returns the response data. Throws an Exception if an error occurs while sending the event payload.

Implementation

Future<dynamic> checkout(CheckoutModel checkout) async {
  final payload = await checkoutEvent(checkout);
  final response = await _fireEvent(payload);
  return response;
}