# 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](https://sdk.venly.io/sdk-reference/ue5-sdk-v3/object-references/pay/fvycheckoutsessionrequest) | 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](https://sdk.venly.io/sdk-reference/ue5-sdk-v3/object-references/pay/fvycheckoutsessiondto) response type
