diff --git a/src/resources/checkout_session_ext.rs b/src/resources/checkout_session_ext.rs index 9deedf9a3..9d6d00e78 100644 --- a/src/resources/checkout_session_ext.rs +++ b/src/resources/checkout_session_ext.rs @@ -14,4 +14,11 @@ impl CheckoutSession { ) -> Response { client.get_query(&format!("/checkout/sessions/{}", id), &Expand { expand }) } + + /// Expires a checkout session. + /// + /// For more details see . + pub fn expire(client: &Client, id: &CheckoutSessionId) -> Response { + client.post(&format!("/checkout/sessions/{}/expire", id)) + } }