Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.47k stars 2.82k forks source link

Free Trail - Snippets to adjust billing period and and Amount owed are not working #48920

Closed isagoico closed 1 month ago

isagoico commented 1 month ago

To be able to tests the steps for this issue https://github.com/Expensify/Expensify/issues/419800 we need the following snippet flow to set the account in the correct state.

Owner paywall flow:

  1. Created an account, workspace and started a free trial
  2. Ran Onyx.merge('nvp_private_lastDayFreeTrial', '<today's date time>');. Example - Onyx.merge('nvp_private_lastDayFreeTrial', '2024-08-20 00:00:00');
  3. Ran Onyx.merge('nvp_private_amountOwed', 1000);
  4. Ran Onyx.merge('private_billingGracePeriodEnd', 1719792000);
melvin-bot[bot] commented 1 month ago

Triggered auto assignment to @OfstadC (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

isagoico commented 1 month ago

Chatted with Chirag about this one so will unassign Corinne as I think this is under control. Please correct if needed 😊

chiragsalian commented 1 month ago

I was able to investigate today. Two things to change, The gracePeriodEnd nvp is actually nvp_private_billingGracePeriodEnd. I updated the same in the scripts. The other thing is that to see the paywall after setting those NVPs you need to go through a few modals. So for example when you submit an expense, you have to enter the amount, select a workspace and then you'll see tha paywall. This is because there is no paywall if you submit to a user but there is a paywall when you submit to a workspace.

Let me know if that makes sense. I'll hit you up on slack as well.

isagoico commented 1 month ago

This was resolved! thanks Chirag ❤️!