postCommerceStoreByStoreidCheckoutChargeWithHttpInfo 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.
Note: This method returns the HTTP Response.
Parameters:
- String storeid (required):
Implementation
Future<Response> postCommerceStoreByStoreidCheckoutChargeWithHttpInfo(String storeid,) async {
// ignore: prefer_const_declarations
final path = r'/v1/commerce/store/{storeid}/checkout/charge'
.replaceAll('{storeid}', storeid);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}