A place to discuss charging merchants for your apps and services using the billing API.
I am using the billing api in test mode for this using react/koa. As I'm testing sometimes on my app restart the billing api request pops up again after already approving it previously.
I'm curious if this is only because it is in test mode or that it will occur live as well. I want to make sure the trial period does not reset and start over for the user. Is this something that requires storing in the db and forcing a redirect with an approved shopify billing link or should it work as is?
Thanks in advance.
Solved! Go to the solution
This is an accepted solution.
Yes, this is something you'll have to take care of. You'll check against your DB whether the merchant has accepted the charge already. If not, create the charge and redirect to the accept page. If the charge exists and is active, you'd redirect the merchant to your app.
This is an accepted solution.
Yes, this is something you'll have to take care of. You'll check against your DB whether the merchant has accepted the charge already. If not, create the charge and redirect to the accept page. If the charge exists and is active, you'd redirect the merchant to your app.
Thank you for clearing this up. One last question, when someone uninstalls should I have a webhook updating the billing information to be reset as well?
Great, thank you for the help.