Skip to content
Newer
Older
100644 47 lines (36 sloc) 1.64 KB
d5a2bcf @millenomi Initial commit.
authored Feb 2, 2010
1 //
2 // ILSimSKPaymentTransaction.h
3 // SimStoreKit
4 //
5 // Created by ∞ on 02/02/10.
6 // Copyright 2010 __MyCompanyName__. All rights reserved.
7 //
8
8ae8cbe @millenomi Backport of closed source changes from Mover Store:
authored Apr 17, 2010
9 #import "ILSimStoreKit.h"
10 #if kILSimAllowSimulatedStoreKit
11
12
d5a2bcf @millenomi Initial commit.
authored Feb 2, 2010
13 #import <Foundation/Foundation.h>
14
15 #import "ILSimSKPayment.h"
16
17 enum {
18 kILSimSKPaymentTransactionStatePurchasing, // Transaction is being added to the server queue.
19 kILSimSKPaymentTransactionStatePurchased, // Transaction is in queue, user has been charged. Client should complete the transaction.
20 kILSimSKPaymentTransactionStateFailed, // Transaction was cancelled or failed before being added to the server queue.
21 kILSimSKPaymentTransactionStateRestored // Transaction was restored from user's purchase history. Client should complete the transaction.
22 };
23 typedef NSInteger ILSimSKPaymentTransactionState;
24
25
26 @interface ILSimSKPaymentTransaction : NSObject {
27 NSError* error;
28 ILSimSKPaymentTransaction* originalTransaction;
29 ILSimSKPayment* payment;
30 NSDate* transactionDate;
31 NSString* transactionIdentifier;
32 NSData* transactionReceipt;
33 ILSimSKPaymentTransactionState transactionState;
34 }
35
36 @property(nonatomic, readonly, copy) NSError* error;
37 @property(nonatomic, readonly, retain) ILSimSKPaymentTransaction* originalTransaction;
38 @property(nonatomic, readonly, copy) ILSimSKPayment* payment;
39 @property(nonatomic, readonly, copy) NSDate* transactionDate;
40 @property(nonatomic, readonly, copy) NSString* transactionIdentifier;
41 @property(nonatomic, readonly, copy) NSData* transactionReceipt;
42 @property(nonatomic, readonly, assign) ILSimSKPaymentTransactionState transactionState;
43
44 @end
45
8ae8cbe @millenomi Backport of closed source changes from Mover Store:
authored Apr 17, 2010
46 #endif // #if kILSimAllowSimulatedStoreKit
Something went wrong with that request. Please try again.