in-app-purchase

Detect refunded managed in-app purchase android IAP 2.0.3

别等时光非礼了梦想. 提交于 2020-07-08 11:06:37
问题 I'm having trouble figuring out how to detect when a refund has been issued for a managed (uncomsumable) in-app product in Android using com.android.billingclient:billing:2.0.3 . The problem seems fairly deep though maybe I'm making it more complicated than it ought to be. To begin, I've made a test purchase which has been acknowledged AND refunded: Looking at the logs of my app I see the following: D/BillingManager: Got a verified purchase: Purchase. Json: {"orderId":"GPA.3362-7185-5389

How to check is transaction free trial in android subscription?

落花浮王杯 提交于 2020-06-27 07:38:45
问题 Is it possible to know is subscription was purchased as free trial? For now I can't find a way how to do it on server/device side. Does anybody has suggestions how to do it? 回答1: On 9th of June, 2017 at page https://developers.google.com/android-publisher/api-ref/purchases/subscriptions appeared info about new value for paymentState - 2 which means "Free trial". 回答2: [--------- NOT SECURE ---------] After spending few days i will share my solution(on client side). First you need to allow API

Free trial implementation for auto-renewable subscription for macOS app

好久不见. 提交于 2020-06-26 14:35:32
问题 I have a macOS app with auto-renewable subscription IAP and I want to add a free trial period. I'm trying to use app store "introductory offer" feature, but can't figure out how to get it working. I have configured a free trial introductory offer in itunes connect, but nothing changes when I try to buy the subscription from my app. So my question is: Do I have to support this feature in my app's code (as described here https://developer.apple.com/documentation/storekit/in-app_purchase

Correlate an Inapp transaction with the Financial report

醉酒当歌 提交于 2020-06-24 12:28:25
问题 I am working with the Inapp purchases in my current app. After successfull purchase i save the "receipt" of the product on my server. I am aware about the "Financial Reports" provided on iTunes Connect at monthly intervals. Now my question is what should i have to do to validate a particular transaction with the Financial report provided by apple. I see some sample Financial reports but couldn't find any such parameter which give the transaction Id or any other unique field. Also, if there is

xcode in App purchase invalid product identifier

非 Y 不嫁゛ 提交于 2020-06-16 17:14:09
问题 I am getting response like below: Purchase Failed: related decl 'e' for SKErrorCode(_nsError: Error Domain=SKErrorDomain Code=3 "Invalid product id: au.com.happyheartsandminds.happyhearts.members995" UserInfo={NSLocalizedDescription=Invalid product id: au.com.happyheartsandminds.happyhearts.members995}) Thank you 回答1: Please be sure to complete the ' Agreements, Tax and Banking ' information in iTunes connect first. Without it you will constantly receive this error message. Screenshot of

xcode in App purchase invalid product identifier

女生的网名这么多〃 提交于 2020-06-16 17:10:00
问题 I am getting response like below: Purchase Failed: related decl 'e' for SKErrorCode(_nsError: Error Domain=SKErrorDomain Code=3 "Invalid product id: au.com.happyheartsandminds.happyhearts.members995" UserInfo={NSLocalizedDescription=Invalid product id: au.com.happyheartsandminds.happyhearts.members995}) Thank you 回答1: Please be sure to complete the ' Agreements, Tax and Banking ' information in iTunes connect first. Without it you will constantly receive this error message. Screenshot of

When to refresh a receipt vs restore purchases in iOS?

痞子三分冷 提交于 2020-06-08 05:31:33
问题 Our iOS app uses in-app purchases, both one-time and an auto-renewing subscription. Both these are non-consumable. iOS offers two APIs: refresh receipt, and restore completed transactions. It seems that the latter works for all cases, while the former works in only some cases. Specifically, when we restore an auto-renewable purchase to a new device, restore purchased transactions will cause future renewals to generate a transaction that will be sent in the background to the new device, where

When to refresh a receipt vs restore purchases in iOS?

女生的网名这么多〃 提交于 2020-06-08 05:30:27
问题 Our iOS app uses in-app purchases, both one-time and an auto-renewing subscription. Both these are non-consumable. iOS offers two APIs: refresh receipt, and restore completed transactions. It seems that the latter works for all cases, while the former works in only some cases. Specifically, when we restore an auto-renewable purchase to a new device, restore purchased transactions will cause future renewals to generate a transaction that will be sent in the background to the new device, where

Honouring in-app purchases offline + removing cancelled purchases

a 夏天 提交于 2020-06-07 06:09:30
问题 The approach involved with the two items in the title of this post appear to conflict with one another and are very hard to test, and it's these edge cases that result in unhappy customers when their purchased product stops working. A lot of the discussions on Stack Overflow are 2+ years old, inconclusive and reference the deprecated AIDL library rather than Google Play Billing Service. I want to make sure a user has offline access to a premium version of my Android App which is purchased via

Honouring in-app purchases offline + removing cancelled purchases

一个人想着一个人 提交于 2020-06-07 06:07:03
问题 The approach involved with the two items in the title of this post appear to conflict with one another and are very hard to test, and it's these edge cases that result in unhappy customers when their purchased product stops working. A lot of the discussions on Stack Overflow are 2+ years old, inconclusive and reference the deprecated AIDL library rather than Google Play Billing Service. I want to make sure a user has offline access to a premium version of my Android App which is purchased via