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
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.
|a minute ago|
|an hour ago|
|2 hours ago|