# creating a subscription using the web sdk.

**URL:** <https://developer.squareup.com/forums/t/creating-a-subscription-using-the-web-sdk/11006>\
**Category:** Questions\
**Tags:** payments-api, subscriptions-api, web-payments-sdk\
**Created:** [October 11, 2023, 4:57pm UTC](https://developer.squareup.com/forums/t/creating-a-subscription-using-the-web-sdk/11006 "2023-10-11T16:57:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gautamdhokale](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gautamdhokale](https://developer.squareup.com/forums/u/gautamdhokale)\
**Post date:** [October 11, 2023, 4:57pm UTC](https://developer.squareup.com/forums/t/creating-a-subscription-using-the-web-sdk/11006/1 "2023-10-11T16:57:55Z")

</div>

Using the web sdk, I’m having problems creating a subscription.

> **[POST /v2/subscriptions - Square API Explorer](https://developer.squareup.com/explorer/square/subscriptions-api/create-subscription)**
>
> Try out the CreateSubscription endpoint in Square's API Explorer

Using the web SDK, I’ve already integrated card payments.

> **[POST /v2/payments - Square API Reference](https://developer.squareup.com/reference/square/payments-api/create-payment)**
>
> Creates a payment using the provided source.

Could you describe the steps involved in creating a subscription using the Web SDK?

We do not want to email a payment link.

We must simultaneously pay and obtain a subscription.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 11, 2023, 6:30pm UTC](https://developer.squareup.com/forums/t/creating-a-subscription-using-the-web-sdk/11006/2 "2023-10-11T18:30:06Z")

</div>

The Web Payments SDK is the client side form for tokenizing card information. It’s not actually used to create the subscription. You’ll use the form to tokenize the card to save a card on file. Then your server side functions can create the subscription with the Subscriptions API. 🙂
