postCommerceStoreByStoreidCaptureByOrderid method
Capture a previously authorized order and settle the payment
Settles the order named in the path — the second half of the two-step flow — and answers the updated order with a Location header. Dispatch follows the order's STORED payment type, and a successful capture is the moment the rest of the system learns about the sale: order and payment rows are updated, coupon redemptions, referral, cart and stats are written, the confirmation email goes out, and the paid and completed events are emitted. A capture failure releases the order's inventory reservations and answers 400, so a failed settlement never leaves items held.
Parameters:
Implementation
Future<void> postCommerceStoreByStoreidCaptureByOrderid(String storeid, String orderid,) async {
final response = await postCommerceStoreByStoreidCaptureByOrderidWithHttpInfo(storeid, orderid,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}