When and how to charge and reset usage subscriptions

hey guys, im creating an app with usage based charges.

question 1 : i want to make sure im restarting the usage i save on my db on the right time, after creating a usage plan, i fetch the full data and save the billing_on property, and then i run a function on 00:00 on that day that restarts all the needed parameters, is it currect?

question 2 : if i want to charge the user based on how much he earned by using the app, then ok i can know which currency his store uses and how much amount of it he got in total, but do i actualy need to convert it myself to USD in order to know exactly how much i need to charge (because app charges are on USD)?

1 Like