Skip to main content

Stripe authorization fixes

For deleting stripe_user_id from an app to allow the user to try to connect stripe again - this is necessary if the user has deauthorized powr from the stripe side.... this is also how we can remove the stripe user for someone who writes into support and asks how they can switch to use a different stripe account:

app = App.find(XXXapp id you are fixingXXX) app.external_data.delete('stripe_user_id') app.save

To do this for all apps for a given user:

User.find(3212155).apps.where('external_data IS NOT NULL').each do |app| puts "deleting strip for #{app.id}" app.external_data.delete('stripe_user_id') app.save end; puts 'done'