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) { if (transaction.transactionState < 5) {
transactionStruct.transactionState = [[@[ transactionStruct.transactionState = [[@[
@"SKPaymentTransactionStatePurchasing", @"purchasing", @"purchased", @"failed", @"restored", @"deferred"
@"SKPaymentTransactionStatePurchased",
@"SKPaymentTransactionStateFailed",
@"SKPaymentTransactionStateRestored",
@"SKPaymentTransactionStateDeferred"
] objectAtIndex:transaction.transactionState] UTF8String]; ] objectAtIndex:transaction.transactionState] UTF8String];
} }

View file

@ -22,7 +22,7 @@ Returns:
* `transactionIdentifier` String * `transactionIdentifier` String
* `transactionDate` String * `transactionDate` String
* `originalTransactionIdentifier` 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 * `errorCode` Integer
* `errorMessage` String * `errorMessage` String