Play Store In-App Billing custom price programmatically?

喜你入骨 提交于 2019-12-23 02:39:10

问题


My application is used to buy journey tickets. The ticket price is different everytime. Can I use In-App Billing to make the user pay a custom price everytime? If so how? i.e. can I set the price which the user has to pay programmatically?


回答1:


You cannot use Google Play In-App Billing to make the user pay a custom price.

Moreover you cannot use Google Play In-App Billing to sell physical goods and services like journey tickets:

You can use In-app Billing to sell only digital content. You cannot use In-app Billing to sell physical goods, personal services, or anything that requires physical delivery. Unlike with priced applications, once the user has purchased an in-app product there is no refund window.

http://developer.android.com/google/play/billing/billing_overview.html




回答2:


You cannot programmaticaly change the price of a product using Google Play In-App Billing .You could fix the price in the Android developer Console .If you still want to custom price at the runtime you could use PAYPAL for that :

https://www.x.com/developers/paypal/products/mobile-overview




回答3:


Your use case perfectly fits the Google Wallet Instant Buy API for Android. Google Wallet Instant Buy API for Android is specifically for physical goods and services and has a simple integration into your Android App. It was launched during Google I/O 2013 and you can get an overview at the following blog post:

http://googlecommerce.blogspot.com/2013/05/fast-and-easy-checkout-for-android-apps.html

Also, please checkout the Google I/O Talk on the same topic

https://developers.google.com/events/io/sessions/330844794

Since this is still in beta, if you're interested please sign up using the interest form

http://getinstantbuy.withgoogle.com/



来源:https://stackoverflow.com/questions/16265202/play-store-in-app-billing-custom-price-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!