Help Center

Help Center

Search our help center for quick answers.

How to Convert to the New Flexkit

2 minute read

During the last few months, Plasso has made some significant changes to the in-app UI as well as the functionality of how Flexkit works. We apologies in advance for any inconvenience this may cause. Our intention is to provide you with a simpler and high-level product that we’re confident you’ll enjoy. Below are the steps to take to get your existing integration up to speed with our updates.

Replace Script Tag

The old Flexkit script tag that you are currently using in your integration will have to be replaced with our new script tag.

Replace the old script tag with this new script tag.

<script src='https://plasso.com/embed/flexkit.1.1.js'></script>
<script>
  Plasso.Flexkit.setup();
</script>

If you use Flexkit to handle users signing up or logging in for your plans, you’ll need to add a memberSpaceId parameter to the setup() call.

<script>
  Plasso.Flexkit.setup({
    memberSpaceId: 'space_id_here'
    });
</script>

If you you want to use Flexkit in test mode, add the testKey parameter to the setup() call.

<script>
  Plasso.Flexkit.setup({
    testKey: 'test_public_key'
  });
</script>

Switch Form Type Request

Next, on the Flexkit forms you have built, you will have to change the attribute for both product purchase forms and plan sign up forms from.

Change these:
data-pl-form-type="purchase"

To these:
data-pl-form-type="order"

And for Login Forms:

Change these:
data-pl-form-type="logInMember"

To these:
data-pl-form-type="memberLogIn"

Add a Space ID

You’ll also need to add your Space ID to all forms.

Add this:
data-pl-space-id="space_id_here"

You can add that line right next to where you have:
data-pl-form-type="order"

Change the Plan ID

If you are using Flexkit to handle subscriptions:

Change these:
name="pl-plan-id"

To these:
name="pl-plan-ids[]"

You must make this change to your integration to continue to use Flexkit. If you have any questions or concerns, please let us know by sending us an email at support@plasso.com or by calling us at 1-888-448-6762.

Was this article helpful?

2 found this helpful.

Can't find your answer?

We want to answer all of your questions. Get in touch and we’ll get back to you as soon as we can. Email us.

Policy questions?

Take a look at our Terms of Service and review our Privacy Policy.