No need for SKPaymentTransactionState prefix for states

This commit is contained in:
Cheng Zhao 2018-01-10 16:59:17 +09:00
parent 133bef3deb
commit 635b753ecd
2 changed files with 2 additions and 6 deletions

View file

@ -148,11 +148,7 @@ using InAppTransactionCallback =
if (transaction.transactionState < 5) {
transactionStruct.transactionState = [[@[
@"SKPaymentTransactionStatePurchasing",
@"SKPaymentTransactionStatePurchased",
@"SKPaymentTransactionStateFailed",
@"SKPaymentTransactionStateRestored",
@"SKPaymentTransactionStateDeferred"
@"purchasing", @"purchased", @"failed", @"restored", @"deferred"
] objectAtIndex:transaction.transactionState] UTF8String];
}

View file

@ -22,7 +22,7 @@ Returns:
* `transactionIdentifier` String
* `transactionDate` String
* `originalTransactionIdentifier` String
* `transactionState` String - The transaction sate (`"SKPaymentTransactionStatePurchasing"`, `"SKPaymentTransactionStatePurchased"`, `"SKPaymentTransactionStateFailed"`, `"SKPaymentTransactionStateRestored"`, or `"SKPaymentTransactionStateDeferred"`)
* `transactionState` String - The transaction sate (`"purchasing"`, `"purchased"`, `"failed"`, `"restored"`, or `"deferred"`)
* `errorCode` Integer
* `errorMessage` String