> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/sdks-and-cli/account/stripe/create-stripe-checkout-session.md).

# Create Stripe Checkout Session

create Stripe Checkout Session.

Billing endpoints for the account's Stripe subscription and checkout. This method creates the stripe checkout session and returns its id.

This method is on the **Hub** surface (`norbix.hub.account`) — call it from admin tooling or IaC.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/sdks-and-cli/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.account.createStripeCheckoutSession({
  projectCap: 10,
  domain: 'example.com',
  newProjectSessionId: 'newprojectsession_4kX9mQvR2tYw7ZbC1dFgHj',
  returnUrl: 'https://app.example.com/billing/return',
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Account.CreateStripeCheckoutSessionAsync(new CreateStripeCheckoutSession
{
    ProjectCap = 10,
    Domain = "example.com",
    NewProjectSessionId = "newprojectsession_4kX9mQvR2tYw7ZbC1dFgHj",
    ReturnUrl = "https://app.example.com/billing/return",
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.account.create_stripe_checkout_session(
    projectCap=10,
    domain="example.com",
    newProjectSessionId="newprojectsession_4kX9mQvR2tYw7ZbC1dFgHj",
    returnUrl="https://app.example.com/billing/return",
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.Hub.Account.CreateStripeCheckoutSession(ctx, map[string]any{
	"projectCap": 10,
	"domain": "example.com",
	"newProjectSessionId": "newprojectsession_4kX9mQvR2tYw7ZbC1dFgHj",
	"returnUrl": "https://app.example.com/billing/return",
}, &result)
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixSwift

let client = Norbix()

let result = try await client.hub.account.createStripeCheckoutSession([
    "projectCap": 10,
    "domain": "example.com",
    "newProjectSessionId": "newprojectsession_4kX9mQvR2tYw7ZbC1dFgHj",
    "returnUrl": "https://app.example.com/billing/return",
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import dev.norbix.sdk.hub.NorbixHub

val hub = NorbixHub()

val result = hub.account.createStripeCheckoutSession(mapOf(
    "projectCap" to 10,
    "domain" to "example.com",
    "newProjectSessionId" to "newprojectsession_4kX9mQvR2tYw7ZbC1dFgHj",
    "returnUrl" to "https://app.example.com/billing/return",
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub account stripe checkout session create --projectCap 10 --domain example.com --newProjectSessionId newprojectsession_4kX9mQvR2tYw7ZbC1dFgHj --returnUrl https://app.example.com/billing/return
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
Dart / Flutter examples for this page are still in the works — we are verifying the exact SDK shapes and will add them shortly. The method itself is available in every Norbix SDK.
{% endhint %}

## In the dashboard

Manage this visually in Norbix Cloud — see [Account & Projects → Billing](/norbix-cloud/project.md).

## API reference

Full request and response for this endpoint: [Create Stripe Checkout Session](/api-reference/account/stripe/create-stripe-checkout-session.md).
