简体   繁体   中英

Android in-app payment for physical items, where to store price information?

I am working on a Android app with the possibility to purchase a physical items. The payment will be implemented with help of the Paypal SDK. Now i am facing a problem. I only offer two products which can be ordered. First one for say 10 Euro and the second one for 15 Euro. Where do I have to place the price information which is then to be transfered to Paypal? I don´t think hardcoding the price for my items into the app is a good approach, but I did not find any better solution for it. I decompiled the app of one competitioner and saw that he also just saves the price into the app?

Once i hardcode the price information into the app, how should I change it in future? Old app installations will always have the old price? Lets say it was 10 Euro and now it should be 12 Euro?! How should I change that? One possibility would be to get the price informaton from my CloudService each time the user starts my app?

What are other solutions for that problem? I want to be flexibel to change the price of my products and to be safe from manipulation. (I would verifiy the payment with my CloudService and Paypal)

Regards

在您的服务器上存储价格这是最好的方法

You set pricing in Google Play Console.

Go to your application, Store presence, In-app products.

You can add your products and pricing info in there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM