create method

Create a new checkout session

Implementation

Future<CheckoutSession> create(CreateCheckoutRequest request) async {
  final response = await _http.post('/checkout/sessions', request.toJson());
  return CheckoutSession.fromJson(response['data'] ?? response);
}