billing

android in-app billing sandbox

此生再无相见时 提交于 2019-11-29 19:49:31
问题 I'm developing a simple in-app billing library. It works with static responses from google, but now I'd like to test this lib with real in-app products. I have created a test account and I'm trying to buy a product, but google Play is asking me for a credit card. Is there any way to test in-app billing without using a real credit card (a sandbox environment, fake credit card, etc)? I have read here that the only way to test this is using a real credit card with a test account (so you don't

how to cancel an in-app test purchase on android?

孤街浪徒 提交于 2019-11-29 02:10:42
问题 Until june 20th 2016 i was able to cancel test purchases done in my app. Doing multiple in-app purchases (not consumable) from the same test account made it easy to develop and test the code without too much hazzle. After 20th june 2016, the purchases did not show in my merchant account and i was unable to do more than 1 purchase from my test account. All i got was the: "you already own this item" message. I logged a request to the google developer support group and the answer was: Beginning

Android In-App billing item price

房东的猫 提交于 2019-11-29 01:54:40
问题 How can the price of an in-app billing item be retrieved before actually displaying the android market frontend for the in-app purchase? Currently it looks like the user only can find out the price for an in-app item in the purchase dialog and i would like to avoid to store the prices in the application for all supported currencies. 回答1: It is possible now with Billing API v3. You can get information with getSkuDetails() method. Example is here. ArrayList skuList = new ArrayList(); skuList

What database schema can I use to save different types of billing data?

感情迁移 提交于 2019-11-28 19:58:54
I have a system that creates an order and that order can be billed to a house account, sent Cash on Delivery (COD), or charged to a credit card. I've created the following tables: ORDERS order_id billingoption_id BILLINGOPTIONS billingoption_id I'm unsure of how the next table should be built for the billing data. Should I build a separate table for each type of billing option (ie. COD, Credit Cards, and House Account)? Then would I have another foreign key column on the Orders table that would refer to a record for the billing data? You can do it either way: a big honking billingoptions table

Token that identify the user

不想你离开。 提交于 2019-11-28 18:54:33
I'm developing an android application and I would like some functionality of the application is not free. I have thought to use in-app Billing Version 3 API, so I have defined an "In-App Product" in the developer console. After reading the documentation, I know that when I start the purchase flow I should pass in a string token that helps the application to uniquely identify the user who made the purchase. But how could I obtain a string token that identify the user? Thanks you can use developer payload to identify user and for the security. there are two way to generate developer payload

Token that identify the user

眉间皱痕 提交于 2019-11-27 20:28:16
问题 I'm developing an android application and I would like some functionality of the application is not free. I have thought to use in-app Billing Version 3 API, so I have defined an "In-App Product" in the developer console. After reading the documentation, I know that when I start the purchase flow I should pass in a string token that helps the application to uniquely identify the user who made the purchase. But how could I obtain a string token that identify the user? Thanks 回答1: you can use

In App billing not working after update - Google Store

≡放荡痞女 提交于 2019-11-27 19:50:59
I have implemented In-App billing in my app - and very recently google has updated it,previously i was testing the in-app billing with "android.test.purchased" and it was working fine (Buy full Version and Restore full version). Now i took the changed classes from here https://code.google.com/p/marketbilling/source/detail?r=7bc191a004483a1034b758e1df0bda062088d840 After that i am not able to test the app it gives the following error in the Logcat "IabHelper: In-app billing error: Purchase signature verification FAILED for sku android.test.purchased ". I have checked with my key, package name

android in app billing purchase verification failed

十年热恋 提交于 2019-11-27 10:34:21
问题 i' having trouble implementing in app billing in my android app. i'm getting a purchase signature verification failed. In a first time i tough it was the base64 key but i checked it many times and i'm still getting the error, then after i took a look at the Security.java file and i found this method which i edited for get some informations about what was wrong: public static boolean verifyPurchase(String base64PublicKey, String signedData, String signature) { if (TextUtils.isEmpty(signedData)