in-app-purchase

ios in-app subscriptions - when does original_transaction_id change?

泄露秘密 提交于 2019-12-21 03:47:14
问题 When there is an auto-renewing subscription, consider the following model situation: user buys 1 month subscription, lets say in January cancels renewal then waits until March (>1 month) and buys same subscription again Does the AppStore return (on receipt verification) a new original_transaction_id for the new purchase? Or rephrased, can original_transaction_id be used for grouping receipts to determine intervals when user had active subscription? Because in sandbox, when there is a

In App Billing getPrice() Android

喜欢而已 提交于 2019-12-21 03:47:08
问题 I have successfully implemented in app billing into my app which all works fine. I am now trying to retrieve the price of items (set in developer console) so that I can reflect these prices within my app without hard-coding values. This code quite obviously only gathers prices of the items already purchased through the Inventory which is not what I'm looking for: SkuDetails gasDetails = inventory.getSkuDetails(SKU_FULL); if (gasDetails != null){ alert("Gas is " + gasDetails.getPrice());} I

What is the SKPaymentTransactionStateDeferred flow of alert messages by Apple?

自古美人都是妖i 提交于 2019-12-21 03:41:55
问题 With iOS8, Apple introduced the new SKPaymentTransactionStateDeferred state for IAP transactions. (e.g., see https://developer.apple.com/library/ios/technotes/tn2259/_index.html). Amongst various issues with this (like, how do you test this!?), I don't know what the flow of Apple alerts looks like with this state. For example, when your app gets the SKPaymentTransactionStatePurchased state, Apple has just given a message "Thank You. Your purchase was successful." What about with the deferred

How to make auto renewable subscriptions tied to in-house user, not apple id?

一世执手 提交于 2019-12-21 03:28:22
问题 I seem to have hit a brick wall, but essentially what I have in my app is a login page for the user and a create account page. When the user opens my app and creates a new account, their information is stored on a Firebase Server (BaSS). Now my question is how would I go about making it so that for every user that created an account through my application, they have the option to subscribe to my application, and this subscription is only valid for their account (not apple id). Currently, if

How to get expiry date for Subscription with client side in Android?

别说谁变了你拦得住时间么 提交于 2019-12-21 02:01:11
问题 We are implementing the subscription using in-app purchase in android, We are getting the purchase timestamp like the below format '{ "orderId":"GPA.1234-5678-9012-34567", "packageName":"com.example.app", "productId":"exampleSku", "purchaseTime":1345678900000, "purchaseState":0, "developerPayload":"bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ", "purchaseToken":"opaque-token-up-to-1000-characters" }' But We need to display the expiry date in application UI and we wanna get the exact expiry date

How to get expiry date for Subscription with client side in Android?

微笑、不失礼 提交于 2019-12-21 02:01:05
问题 We are implementing the subscription using in-app purchase in android, We are getting the purchase timestamp like the below format '{ "orderId":"GPA.1234-5678-9012-34567", "packageName":"com.example.app", "productId":"exampleSku", "purchaseTime":1345678900000, "purchaseState":0, "developerPayload":"bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ", "purchaseToken":"opaque-token-up-to-1000-characters" }' But We need to display the expiry date in application UI and we wanna get the exact expiry date

How to create in-app purchase to upgrade from free version to paid version android

纵然是瞬间 提交于 2019-12-21 01:28:07
问题 I have two version of my app Paid Version Free Version Now in free version I disabled some features that are available only in the paid version. So what i want is when user taps on any of those disabled features, the in-app purchase window should pop up and when the transaction completes the free version of the app should get replaced by the paid version. Can you please tell me what would be the right way to do that. 回答1: Free version to paid version scenario: To understand why you should

iOS In-App Purchase sandbox test account keeps popping up for verification

主宰稳场 提交于 2019-12-20 19:47:12
问题 I have Auto-Renewable In-App Purchase item in my application which is in development stage. I could able to test the complete transaction till 2 days ago with different sandbox test accounts (+abc@def.com). From past couple of days when I am trying to test the transaction with new sandbox test accounts (+abc345@def.com), it is giving me an alert saying AppleID Verification - Open settings to continue signing with ******+abc345@def.com . I have already verified the account before trying to

In-App Payments for Android Amazon AppStore

独自空忆成欢 提交于 2019-12-20 12:43:56
问题 I'm familiar with the in-app payments from google proper http://developer.android.com/guide/market/billing/index.html But are there other solutions which can be implemented for apps distributed through the amazon marketplace? Alternatively, does the google IAP system work if the app wasn't distributed through the google marketplace? 回答1: Google's IAB uses the Android Market app, and requires a Google checkout account (possibly works with carrier billing too). If the Market app is not

Current receipt invalid or mismatched ds person id

徘徊边缘 提交于 2019-12-20 12:43:37
问题 I am trying to test In-App purchases for MacOS. After entering the test user credentials, the App Store complains: "Current receipt invalid or mismatched ds person id." and the purchase fails. 回答1: Is the receipt for the application that you run was also for the same test user as the one that you try to perform In-App purchase for? If your debug version runs without a proper receipt (from the same test user) I doubt the In-App purchase will work. Don't use the sample receipt when you want to