Paddle Subscription or Product Web Purchase

1. Configure Paddle Webhook

2. Create the Paddle SKU

Identify the plan Plan ID you want to sell from your Paddle dashboard and use it to create a SKU

3. Add the SKU to a Permission

Configure Permissions

3. Create a web checkout page

You can now create a web checkout page using the following code snippet.

In particular pay attention to the product that must be the same Plan ID that you used above to create the SKU and the custom_id in the passthrough variable that must contain the custom_id you will then use in your app to identify the user

Next step will be to connect the user in your application

<div class="section">
  <a href="#!" id="buy">Buy now!</a>
  <script type="text/javascript">
    function openCheckout() {{
        product: 16491,
        passthrough: '{"custom_id":  "my_custom_userid"}',
      .addEventListener("click", openCheckout, false);
<script src=""></script>
<script type="text/javascript">
  Paddle.Setup({ vendor: 3264 });

Next step will be to connect the user in your application

Glassfy.connectCustomSubscriber("my_custom_userid") { error in
    // handle error.
[Glassfy connectCustomSubscriber:@"my_custom_userid" withCompletion:nil];
await Glassfy.connectCustomSubscriber("my_custom_userid");

What’s Next
Did this page help you?