payment.applicationUsername in iOS 7 StoreKit for In-App Purchases

爱⌒轻易说出口 提交于 2019-12-07 16:10:37

问题


In the WWDC video "Using Store Kit for In-App Purchases", the speaker describes adding a payment.applicationUsername as a hash of the customer account name.

payment.applicationUsername = hash(customerAccountName);

I cannot find documentation on this anywhere. I don't think the customerAccountName is the same as the GUID, so where would we obtain this information?


回答1:


The "customerAccountName" value, and the hash function can be different from developer to developer. Apple provides a good example of a hash function in the In-App Purchase Programming Guide, in the section entitled Requesting Payment, Detecting Irregular Activity.

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/RequestPayment.html



来源:https://stackoverflow.com/questions/19296750/payment-applicationusername-in-ios-7-storekit-for-in-app-purchases

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!