postCommerceStoreByStoreidCheckoutCharge method
Authorize and capture a new order in one call — the checkout spelling
Performs authorization and capture back to back against a newly created order for the addressed store, on the same handler as the unprefixed charge address. It takes the authorize body and inherits every authorize rule, including the store's currency winning over the body and the items being reserved before the processor is called. There is no order id on this address, so it can never continue an existing order. Either half failing answers 400, and the capture side effects run only when both succeed.
Parameters:
- String storeid (required):
Implementation
Future<void> postCommerceStoreByStoreidCheckoutCharge(String storeid,) async {
final response = await postCommerceStoreByStoreidCheckoutChargeWithHttpInfo(storeid,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}