skpaymenttransaction

how to assign skpayment applicationusername

主宰稳场 提交于 2021-02-05 11:27:28
问题 can we assign skpayment applicationusername? When in app purchase is completed, I got a null applicationUsername in the SKPayment. How do I assign a value to SKPayment applicationUsername ? 回答1: You can't assign a value to the property of an SKPayment ; When you create the SKMutablePayment instance in order to submit the purchase request, your app can provide an opaque value that represents the application user id. This enables the iTunes store to detect irregular activity. Despite its name,

how to assign skpayment applicationusername

故事扮演 提交于 2021-02-05 11:27:12
问题 can we assign skpayment applicationusername? When in app purchase is completed, I got a null applicationUsername in the SKPayment. How do I assign a value to SKPayment applicationUsername ? 回答1: You can't assign a value to the property of an SKPayment ; When you create the SKMutablePayment instance in order to submit the purchase request, your app can provide an opaque value that represents the application user id. This enables the iTunes store to detect irregular activity. Despite its name,

how to assign skpayment applicationusername

前提是你 提交于 2021-02-05 05:27:27
问题 can we assign skpayment applicationusername? When in app purchase is completed, I got a null applicationUsername in the SKPayment. How do I assign a value to SKPayment applicationUsername ? 回答1: You can't assign a value to the property of an SKPayment ; When you create the SKMutablePayment instance in order to submit the purchase request, your app can provide an opaque value that represents the application user id. This enables the iTunes store to detect irregular activity. Despite its name,

iOS 内购

◇◆丶佛笑我妖孽 提交于 2020-12-29 07:56:53
从开发iOS到现在,内购app也做过两个了,现在好好记录下这个流程。 首先需要在所属的app下创建物品,这个流程网上很多也不难。这边就详细说明了,可参考下面网址。 http://blog.csdn.net/shenjie12345678/article/details/40978977/ 我们定义好一个或多个product 后 每个product id对应着一个product。 我们拿到一个或多个product id,数据处理后对appstore 发起购物请求,等待appstore处理后的响应(之间很多操作,都是appStore和用户之间,客户端无法干预), 客户端对购物成功的回执单进行校验。 这个流程基本就是这样,如上图所示。 理清整个流程后,我们对内购就非常清晰了,要注意的就是细节了,对各种异常情况的处理。各种case 见下列枚举,基本和app的sdk保持一致 typedef enum : NSUInteger { EPaymentTransactionStateNoPaymentPermission, //没有Payment权限 EPaymentTransactionStateAddPaymentFailed, //addPayment失败 EPaymentTransactionStatePurchasing,//正在购买

SKPaymentTransactionObserver `In-app purchases can’t be promoted on the App Store` on iTunes connect but delegate implemented and tested

感情迁移 提交于 2019-12-22 07:05:04
问题 We keep getting this warning message in Itunes connect after implementation and test of the delegate method: These in-app purchases can’t be promoted on the App Store because your latest app binary doesn’t include the SKPaymentTransactionObserver method. We implemented the delegate method for the new App Store purchase from iOS 11 in a dedicated object that manages our payments and other SKPaymentTRansactionObserver. func paymentQueue(_ queue: SKPaymentQueue, shouldAddStorePayment payment:

restoreCompletedTransactions() not calling paymentQueue updatedTransactions?

随声附和 提交于 2019-12-13 14:08:19
问题 I am having trouble restoring an IAP in Swift 4/iOS 11. My AppDelegate implements SKPaymentTransactionObserver . In AppDelegate 's didFinishLaunchingWithOptions I'm calling SKPaymentQueue.default().add(self) . I implement the paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) function in AppDelegate as well. From a ViewController I can make a purchase like so: let payment = SKPayment(product: products.first!) SKPaymentQueue.default().add(payment)

IAP receipt validation for iOS

痞子三分冷 提交于 2019-12-07 14:49:25
问题 I am working on a client/server application which uses Apples IAP and StoreKit framework to purchase a subscription. What we would like is for the client (iPhone or iPad) to make the initial subscription purchase with apple through their iTunes account using StoreKit framework and then pass of the receipt to our server, which will validate it and then update the users account status. We'd also like the server to be responsible for managing the status of the subscription (check for auto-renew,

How to use appStoreReceiptURL

痴心易碎 提交于 2019-12-06 17:02:34
问题 transactionReceipt is deprecated. But I am not able to use, [[NSBundle mainBundle] appStoreReceiptURL]. This is supposed to return a url to a receipt if there is one. But for me there isn't one, as this value is nil, and as far as I can tell it shouldn't be. I'm running on iOS 7 and have done a few in-app purchases (sandbox on the device). Can anyone help . 回答1: This will give you the receipt as the contents of the mainBundle's appStoreReceiptURL :- [NSData dataWithContentsOfURL:[[NSBundle

IAP receipt validation for iOS

前提是你 提交于 2019-12-06 01:14:50
I am working on a client/server application which uses Apples IAP and StoreKit framework to purchase a subscription. What we would like is for the client (iPhone or iPad) to make the initial subscription purchase with apple through their iTunes account using StoreKit framework and then pass of the receipt to our server, which will validate it and then update the users account status. We'd also like the server to be responsible for managing the status of the subscription (check for auto-renew, cancellation etc..) This is all using iOS 7 style appleReceipts, rather than iOS 6 style transaction

SKPaymentTransactionObserver `In-app purchases can’t be promoted on the App Store` on iTunes connect but delegate implemented and tested

流过昼夜 提交于 2019-12-05 11:05:34
We keep getting this warning message in Itunes connect after implementation and test of the delegate method: These in-app purchases can’t be promoted on the App Store because your latest app binary doesn’t include the SKPaymentTransactionObserver method. We implemented the delegate method for the new App Store purchase from iOS 11 in a dedicated object that manages our payments and other SKPaymentTRansactionObserver. func paymentQueue(_ queue: SKPaymentQueue, shouldAddStorePayment payment: SKPayment, for product: SKProduct) -> Bool { let isProUser = userDataService.isUserPro let isUserLoggedIn