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?
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://stackoverflow.com/questions/19296750/payment-applicationusername-in-ios-7-storekit-for-in-app-purchases