> For the complete documentation index, see [llms.txt](https://sdk.venly.io/sdk-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk.venly.io/sdk-reference/ue5-sdk-v3/function-references/pay/checkout/checkoutsession.md).

# CheckoutSession

Initiate the checkout process for a single payment by calling this endpoint. Save the `id` and `url` from response body. The `id` parameter is the sessionId (Used when checking status of this checkout), and the `url` parameter is the checkout URL (You pass this to your end-user).

{% code overflow="wrap" %}

```cpp
void CheckoutSession(const FVyCheckoutSessionRequest& Params, const FVyOnCheckoutSessionComplete& OnComplete) const;
```

{% endcode %}

\
**Parameters**

| Params     | [FVyCheckoutSessionRequest](/sdk-reference/ue5-sdk-v3/object-references/pay/fvycheckoutsessionrequest.md) | Parameters for this operation (FVyCheckoutSessionRequest)                               |
| ---------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| OnComplete | FVyOnCheckoutSessionComplete                                                                              | The callback function called when the user preferences retrieval operation is complete. |

\
**OnComplete Callback** (FVyOnCheckoutSessionComplete)\
Contains a [FVyCheckoutSessionDto](/sdk-reference/ue5-sdk-v3/object-references/pay/fvycheckoutsessiondto.md) response type
