in-app-purchase

How to create a product id for in app purchases

亡梦爱人 提交于 2019-12-11 06:05:57
问题 I am trying to test in app purchases for my iPhone App and I see how to setup test users, but I am not sure how to create a product id that I can use. I do not want to submit my app to the app store without testing, but it seems like you have to submit in order to manage in app purchase? What am I doing wrong? 回答1: Does your bindle id contain a wildcard? You must create a new app in iTunesConnect but the bundle id cannot contain an *. it must be "com.yourcompanyname.yourappid". The reason is

App Store - Identify users who purchased a subscription

为君一笑 提交于 2019-12-11 05:58:54
问题 When using subscriptions in iOS via in-app purchases is there anyway for me to identify users who have purchased the app? For instance, if I have an Android app as well how can I ensure an iOS user moving to the Android app doesn't have to re-purchase a subscription? Is it possible? 来源: https://stackoverflow.com/questions/23897158/app-store-identify-users-who-purchased-a-subscription

In-app-purchase call function when successful

元气小坏坏 提交于 2019-12-11 04:58:34
问题 I have a button which purchases a product which should hide the background view shielding the user from the using the extension to the app. When the button is pressed, the code to buy the product is from an external file. Because of this, I have know way of hiding the view when the purchase comes back successful. Code from other file for transaction: AnyObject in transactions { if let trans: SKPaymentTransaction = transaction as? SKPaymentTransaction { switch trans.transactionState { case

onPurchaseStateChange not getting called

末鹿安然 提交于 2019-12-11 04:48:10
问题 The sample code for the in-app feature has: onPurchaseStateChange(PurchaseState purchaseState, String itemId, int quantity, long purchaseTime, String developerPayload) and it brings information on the in-app purchase that was made (id, how much etc.). and here I can update my code but I am not getting any response in this callback method from Billing Service. What wrong in sample application. can anyone help ? Thanks in Advance. 回答1: I'm not sure what the problem is and why sometimes the

In app purchases with MKStoreKit failing: “Problem in iTunes connect configuration for product: xxx”

邮差的信 提交于 2019-12-11 03:54:22
问题 I'm trying to implement in app purchases in my App using MKStoreKit. I've followed all the steps and I'm getting the error: Problem in iTunes connect configuration for product: I've recreated the provisioning profiles, checked the product id is the same as in itunes connect, sent and rejected a binary, trying to delete everything and set it up again and nothing is working. Any idea? 回答1: I know this is a late reply, but somehow I could not find the answer to this problem elsewhere so I

Gdx-Pay check for purchases

前提是你 提交于 2019-12-11 03:49:43
问题 I've finished setting up my IAP system but I can't figure out how to check if the user actually owns/have purchased a certain product. Using Google IAP Billing for android I simply did: Purchase ITEM_1 = inventory.getPurchase(ITEM_1); if(ITEM_1 != null && verifyDeveloperPayload(ITEM_1)){ //Give user the product ITEM_1_BOUGHT = true; } I can't find an equivalent method for this in Gdx-Pay. 回答1: The PurchaseObserver has a method called: handleRestore(Transaction[] transactions) You can iterate

Cannot connect to iTunes Store In App Purchase Error

。_饼干妹妹 提交于 2019-12-11 03:47:20
问题 I have setup In App Purchases in my app, the code all seems fine, you can see this thread for reference of my code: In App Purchase Code Crashing during testing The problem Im having is that when trying to user a Test Account to make a purchase, I am getting the following error every time: 2014-01-06 13:38:33.806 MyApp[3361:60b] failed transaction called 2014-01-06 13:38:33.806 MyApp[3361:60b] Transaction failed called 2014-01-06 13:38:33.807 MyApp[3361:60b] Transaction error: Cannot connect

Restore deleted auto-renewable subscription

淺唱寂寞╮ 提交于 2019-12-11 03:46:28
问题 How does it look like when you delete the auto-renewal subscription from iTunes Connect for your app, and your user will do restore (and have bought some auto-renewal sub in the past)? Example scenario: User purchases auto-renewable subscription and he is subscribed for some time. I delete auto-renewable subscription in iTunes Connect (user subscription is cancelled). User e.g. uninstalls app and install it again and do restore. Will he get all the transactions associated with deleted

Verifying Windows 8 inapp-purchase receipt with xmlsec1

时光总嘲笑我的痴心妄想 提交于 2019-12-11 03:39:17
问题 How can I verify Win8 inapp-purchase receipt, using xmlsec1? Here is what I'm tyring to do: My sample receipt (saved in file receipt.xml ): <?xml version="1.0"?> <Receipt Version="1.0" ReceiptDate="2012-08-30T23:10:05Z" CertificateId="b809e47cd0110a4db043b3f73e83acd917fe1336" ReceiptDeviceId="4e362949-acc3-fe3a-e71b-89893eb4f528"> <AppReceipt Id="8ffa256d-eca8-712a-7cf8-cbf5522df24b" AppId="55428GreenlakeApps.CurrentAppSimulatorEventTest_z7q3q7z11crfr" PurchaseDate="2012-06-04T23:07:24Z"

paymentquue updatedTransactions: not called instead paymentQueueRestoreCompletedTransactionsFinished: calling

十年热恋 提交于 2019-12-11 03:38:35
问题 When I am restoringCompletedTransactions: by using the following scenario [[SKPaymentQueue defaultQueue]addTransactionObserver:self]; [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; SKPaymentQueue Delegate not calling updatedTransactions: instead it's calling paymentQueueRestoreCompletedTransactionsFinished: does anybody know about this how to overcome.Let me know if you have any idea. Thank You in Advance.. 回答1: Apple has listed here a couple reasons why this might fail. One