How do you allow a Stripe Subscription to change User Role?

Hello,

Just wondering if anyone has successfully managed to integrate a successful Stripe Payment/Subscription that can change the User Role in Knack.

For example, someone using a Knack App is set to a User Role of “User”, which allows restricted access. If that same User then purchases a subscription via Stripe successfully, I’m looking to automatically change the User Role from “User” to “Subscriber”.

Is this something that can be easily done within Knack itself, as I can’t seem to be able to find out how to do this in the documentation.

Kind regards,

Dunkie
Data Breaches Digest

At the time of this writing, Knack does not natively support Stripe subscriptions, but with custom code it is possible.

If you’re looking for the easiest no-code solution, you can do the following: Create a “Subscribe” form and a Record Rule that updates the user’s role when that form is submitted. Or, create an Email Rule that notifies you when a user makes a payment on your site, then log into the Knack Builder and update the user’s role manually.