> ## Documentation Index
> Fetch the complete documentation index at: https://help.cryptolens.io/llms.txt
> Use this file to discover all available pages before exploring further.

# .NET: CreateSessionModel

> Signatures, models and behavior for SKM.V3.Models.CreateSessionModel in the .NET SDK 4.0.54.

Parameters used by [`CreateSession(string, CreateSessionModel)`](https://help.cryptolens.io/libraries/dotnet-reference/methods/payment-form#create-session-5ca683888e).

**Namespace:** `SKM.V3.Models`\
**Version:** 4.0.54. Both packages; all six documented target frameworks.

```csharp C# theme={null}
public class CreateSessionModel : RequestModel
```

```vb VB.NET theme={null}
Public Class CreateSessionModel Inherits RequestModel
```

## Inherited SDK Members

* [`LicenseServerUrl`](https://help.cryptolens.io/libraries/dotnet-reference/models/request-model#license-server-url-67581aa5cb)

## Properties

### Currency

The ISO currency code, for example USD.

```csharp C# theme={null}
public string Currency { get; set; }
```

```vb VB.NET theme={null}
Public Property Currency As String
```

**Type:** `string`

### CustomField

A custom value available to the payment form workflow.

```csharp C# theme={null}
public string CustomField { get; set; }
```

```vb VB.NET theme={null}
Public Property CustomField As String
```

**Type:** `string`

### Expires

How long the session remains valid, in seconds.

```csharp C# theme={null}
public long Expires { get; set; }
```

```vb VB.NET theme={null}
Public Property Expires As Long
```

**Type:** `long`

### Heading

The heading shown on the payment form.

```csharp C# theme={null}
public string Heading { get; set; }
```

```vb VB.NET theme={null}
Public Property Heading As String
```

**Type:** `string`

### Metadata

Additional information to save with the transaction.

```csharp C# theme={null}
public string Metadata { get; set; }
```

```vb VB.NET theme={null}
Public Property Metadata As String
```

**Type:** `string`

### PaymentFormId

The payment form ID.

```csharp C# theme={null}
public int PaymentFormId { get; set; }
```

```vb VB.NET theme={null}
Public Property PaymentFormId As Integer
```

**Type:** `int`

### Price

The price to charge, for example 12.5.

```csharp C# theme={null}
public double Price { get; set; }
```

```vb VB.NET theme={null}
Public Property Price As Double
```

**Type:** `double`

### ProductName

The item name shown to the customer.

```csharp C# theme={null}
public string ProductName { get; set; }
```

```vb VB.NET theme={null}
Public Property ProductName As String
```

**Type:** `string`

## Constructors

### CreateSessionModel()

Creates an empty CreateSessionModel object. This constructor does not send an API request.

```csharp C# theme={null}
public CreateSessionModel()
```

```vb VB.NET theme={null}
Public Sub New()
```

[.NET SDK Reference](https://help.cryptolens.io/libraries/dotnet-api.md) · [Reviewed Source Revision](https://github.com/Cryptolens/cryptolens-dotnet/tree/30aaf399ba53d9a111bee896c35bf557fa219394)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.