I am building an app that needs to bill per customer usage. So if a merchant has my app installed and one of their customers uses the functionality on the storefront, I would like to bill the customers.
I was thinking to redirect them to a Stripe checkout so that they can purchase tokens to use my app and then redirect them back to the store so that they can use my app and then possibly proceed to buy items from the store through the Shopify checkout.
Is that allowed by Shopify? This should be allowed as it does not bypass the shopify checkout to purchase products created on Shopify, it’s just needed for my app to function.
The merchant will be able to use the functionality too on the admin side of the app, so I will gladly use the Shopify billing API for that, since that works great for billing merchants. But I could not find any proper way to bill based on customer usage on the storefront, without making my app a nightmare in terms of UX for both customers and merchants.