Search code examples
web-applicationstableau-apislack

How to create payment page after complete Trial -Developer mode


Currently, am doing for creating a slack application that integrates with tableau, I am going to publish my application into slack."

I need to give 14 days trail use for my customer after that my customer taking to the payment page"

That's my biggest doubt, please solve my issue.


Solution

  • In general all apps on the Slack app directory a free to download and install. Of course you can offer your app on a trial basis (others do it too), but you will need to implement it yourself.

    Here is a rough outline of how to implement a trial period for a Slack app:

    • for each Slack workspace record the date & time your app is installed for the first time and set the license mode to trial (e.g. modes are trial, payed)
    • for each request from a workspace (e.g. slash command, Interactive action) check if the license is still valid. license is valid if: trial period is not yet expired and license mode for this workspace is payed
    • Reply to the request normally if license is valid
    • Reply with a "trial period expired" message if license is not valid (and include a link to your "payment page")
    • Provide a function for the user to upgrade to payed license on your "payment page"