Wearing Stripes (II)
This is the second part of my article about how we migrated our entire billing system to Stripe, here at WeTransfer. Head back to part one to read why we chose Stripe and how we designed our new system around it.
We were happy with how our brand new billing system took shape and quite eager to see it out in the wild. It was time to welcome all our users into the new system. Because the two billing systems were isolated from each other, we had a fairly simple job rolling out the new one. There were basically two ways a user could land on the new system: either through signup, or as a result of them being migrated. Let’s tackle the former first.
The Rollout
We created a feature flag with a few targeting rules, and evaluated it each time a user had signed up. You can think of it as a high level if statement:
post '/signup' do
if use_new_system?
...