Skip to main content

upgrading-and-downgrading-users

Upgrading and downgrading users​

To create a premium app subscription​

  • Go to any app, click POWr upgrade
  • Test credit card number: 4446283280247004
  • Any valid exp and name should work locally

Alternatively, to JUST create a premium app in console.​

  • App.find(THE_APPS_NUMBER).update(premium:true)

To downgrade an app​

Click 'cancel' in the premium section

To create a pro user​

  • Go to any app, click upgrade to pro
  • Same cc stuff as above

To remove a pro user (only in console currently):​

  • pro = Role.where(name: 'pro')
  • User.find(THE_USER).roles.delete(pro) #Removes the user's role
  • User.update(credits: 0) #Gives the user 0 credits