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

4. Create a web checkout page

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


Make sure the value for product is the same as the Plan ID used above to create the SKU and that the custom_id in the passthrough variable contains the custom_id you will use in your app to identify the user.

<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.Environment.set('sandbox'); // only do this on sandbox testing.
  Paddle.Setup({ vendor: 3264 });

Next 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