In App purchases

I have previously used Mantle for Shopify apps subscription however if I want to use an app and charge customers not on a subscription basis but rather have in app purchases, like one time payment for that particular product then how do I implement that like what's the best possible way to do so
12 Replies
Chocci_Milk
Chocci_Milk8mo ago
Hello, I'm surprised that Mantle doesn't have that functionality already. Have you asked them or looked at their docs? Otherwise, I would recommend using the one-time purchase functionality for the Shopify Billing API. We have an example app using that here: https://github.com/gadget-inc/templates/tree/main/shopify/one-time-charge-template
GitHub
templates/shopify/one-time-charge-template at main · gadget-inc/tem...
A collection of helpful app templates to accelerate your development with Gadget - gadget-inc/templates
safwan
safwanOP8mo ago
yeah I'll look at this and also go through mantles support also I have a problem regarding billing if you can dm me, it's really urgent
Chocci_Milk
Chocci_Milk8mo ago
We've seen your email and messages and are discussing a course of action internally
safwan
safwanOP8mo ago
okay thank you so much I really need this
ljspoor94
ljspoor948mo ago
Mantle do have this option, atleast to do usage events/charges (which can be one off charges). I suggest having a read of their documentation https://heymantle.com/docs/integrate/usage-events
Chocci_Milk
Chocci_Milk8mo ago
I don't think that he's referring to usage charges. In his case, I think that he means something like an in app purchase
ljspoor94
ljspoor948mo ago
Yes you can use usage charges for that For example your plan allows 200 emails sent per month, you could use a usage charge to purchase another 200 etc Otherwise I don't believe Shopify allow you to combine having for example a monthly and one time purchase option. Same with one time purchase, literally meaning one time purchase. So you'd need to use something like usage charges. When you sign up to a plan it will mention about the usage charges in it and the merchant essentially agrees to accepting these. So you will need to handle some sort of confirmation UI with this in your app though, because all you do is literally call an API and that creates the usage charge. So be sure to inform the user of this with correct UI
Chocci_Milk
Chocci_Milk8mo ago
Thats a workaround but not what I would recommend if he wants to allow an indeterminate amount of in app purchases
Chocci_Milk
Chocci_Milk8mo ago
Shopify
Support one-time app purchases
Learn how to charge a one-time fee for your app using the GraphQL Admin API.
safwan
safwanOP8mo ago
umm i feel like this is right but my app uses several one time purchases each for a different functionality/feature so this won't be right. Since I am familiar with Mantle I really dig what he's saying so basically I can charge every single in app purchase as a usage. The only key is how to make those usage charges persist across different months
Chocci_Milk
Chocci_Milk8mo ago
If its a one time purchase, you shouldn't be charging them monthly for it.
safwan
safwanOP8mo ago
hello I know you guys are discussing this internally just note that today is my deadline to make the payment and I would be really grateful if you can ensure my account doesn't get blocked while you're at it

Did you find this page helpful?