Search code examples
pythontkinterauthorizationpayment-gatewaybraintree

how to set up subscription service for python app


My head is spinning, I simply want a way where a user can subscribe to my desktop application. My basic needs:

  1. the user signs up and joins the subscription
  2. once the user has joined the paid subscription they are allowed access to the python tkinter app
  3. if the user leaves the subscription then they are not allowed access anymore

I've gone from license keys to sandbox Braintree but I still have no clue what to do, does anyone know how to integrate sandbox Braintree with python tkinter or is there another way?

Thanks for any help in advance


Solution

  • You need to have a web-server that will contain information about "paid" subscription.
    This subscription should have key or signature that also stored on desktop.

    And then when tkinter-app starting - send a request to that web-server to check if that key is "paid".
    If yes - continue with app loading, else - open checkout page.