in-app-purchase

Payment Transaction State Failed

痴心易碎 提交于 2019-12-11 13:54:53
问题 I am trying to make In-app purchase in my application using phonegap plugin which is https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/InAppPurchaseManager but in sandbox testing i'm getting following error plugins.inAppPurchaseManager.updatedTransactionCallback.apply(plugins.inAppPurchaseManager, ["PaymentTransactionStateFailed",0,"Cannot connect to iTunes Store","","",""]) and then the application gets struck...can anyone help me out with this?? 回答1: Take a look inside of

In app-billing implementation , buying paid app from free version

吃可爱长大的小学妹 提交于 2019-12-11 13:43:27
问题 I have paid and free version application in the single publisher account. now I have implemented the in-app billing implementation in free version I have added the in app product and done implementation in application code also. But what I want is user should able to buy the paid app from the free version app using the in app billing purchase. I am not getting how to add paid app as in app product and paid app get downloaded once user purchase the paid version. 回答1: You can not add any other

Android - how to check if in app purchase has already been done?

泪湿孤枕 提交于 2019-12-11 13:18:24
问题 How do i check if a in app purchase has been done before? So that my user doesnt need to repurchase the in app purchase upon uninstalling and reinstalling the app? I have set my in app item to managable in the android market publish page. i have read about RESTORE_TRANSACTION but I do not know what i need to look for inside this response and also how to test this. Any help would be greatly appreaciated. 回答1: You need to restore the transactions, using the RESTORE_TRANSACTION flag you

iOS In App Purchase security questions

余生长醉 提交于 2019-12-11 13:00:01
问题 I have some questions regarding In App Purchase on iOS 1) Speaking of receipt validation: Is there a chance that the user was charged money but the receipt validation fails (for whatever reason) and then the user does not get his content? (In case, one needs the code to answer this question: I'm going to use RMStore or less likely MKStoreKit) 2) Is it possible to store the App receipt (or the info of bought inApp products) securely in iCloud and then be able to download the content the user

Multiple receipt count for restoreCompletedTransaction inapp purchasing

浪子不回头ぞ 提交于 2019-12-11 12:57:35
问题 I have an autorenewable subscription. When the app is installed on a new device, Apple returns ALL previous purchase receipts, in this case since it is sandbox I get 6 receipts every time I install. The observer then sends the queue for restoredCompleted transactions. I have a method to send the transaction to my server for Apple verification, but it runs 6 times because of the 6 receipts. I really only want to deal with the LAST receipt sent. So I am trying to count the transactions in the

finishTransaction: isn't removing the transaction from queue…

依然范特西╮ 提交于 2019-12-11 12:57:29
问题 I have several non-consumable inApps. The payment is done once (correctly: SKPaymentTransactionStatePurchased), then the download of the inApp is correctly done (and finished) and finnaly I call [[SKPaymentQueue defaultQueue] finishTransaction:transaction]; however the transactions remain in the queue... why? aren't they supposed to be removed? also the following isn't being called: - (void)paymentQueue:(SKPaymentQueue *)queue removedTransactions:(NSArray *)transactions I've also tried to

How to save the state of inApp purchase

时光总嘲笑我的痴心妄想 提交于 2019-12-11 12:46:31
问题 I have implemented inApp purchase in my game app where first three levels are free and then user has to pay to unlock remaining 7 levels. In app purchase is working fine. But once, the user buys the item, how should I handle it so that next time onwards he gets to see the levels as unlocked. Should I save it in sharedPreferences and check everytime. Or should I query everytime from google console to check the status for the particular id. Would highly appriciate if someone can suggest me the

InAppPurchase in Sandbox(via test user)

你离开我真会死。 提交于 2019-12-11 12:46:24
问题 To test InAppPurchase in sandbox, do i need to upload a app in Appstore? If not then how the code will relate to the dummy app i made in iTunesConnect for inAppPurchase? 回答1: As mentioned by @stack , InAppPurchase can not be tested on Simulator. You have to use device to test it. And also, you do not need to submit application for AppStore release. Please have look at this blog and visit the last section called Creating the Purchase Product and Test User in iTunes Connect . Please let me know

In App Purchase not working while reviewing by Apple

自古美人都是妖i 提交于 2019-12-11 12:29:18
问题 I have an app with working In App purchases, it was approved by Apple and it is now in Appstore. A few days ago I submitted a new version of the app with one new consumable purchase, implemented as others were. I'm using MKStoreKit and this method to buy a feature: // ... showing loading window [[MKStoreManager sharedManager] buyFeature:feature onComplete:^(NSString* purchasedFeature,NSData* purchasedReceipt, NSArray* availableDownloads) { // ... some handler and close loading onCancelled:^ {

InAppPurchase works in simulator but not on iPhone

◇◆丶佛笑我妖孽 提交于 2019-12-11 11:04:30
问题 I have an app v1.0 already released on the store without In App Purchase. I develop a v1.1 adding an In App Purchase. IAP works fine on simulator (title, description, price and ID all come back correctly from iTunes Connect), but not on the device. As Eric sayed on this post, a solution is to delete the app from the iphone and reinstall. In App Purchase works in simulator but not on iPhone => it works BUT Question! Will my users also need to uninstall their application v1.0 and install 1.1