SKPaymentTransaction, and Receipt on OS X
SKPaymentTransaction, and Receipt on OS X
- Subject: SKPaymentTransaction, and Receipt on OS X
- From: Trygve Inda <email@hidden>
- Date: Sun, 07 Jun 2015 17:54:10 -0700
- Thread-topic: SKPaymentTransaction, and Receipt on OS X
In my delegate:
-(void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray
*)transactions
I call: (to make sure we are on the main thread):
case SKPaymentTransactionStatePurchased:
[self
performSelectorOnMainThread:@selector(completeTransaction:)
withObject:transaction waitUntilDone:YES];
break;
Then in:
-(void)completeTransaction:(SKPaymentTransaction *)transaction
{
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
// At this point the receipt is not always updated with the purchase...
Sometimes I have to quit the app and relaunch it.
}
How can I ensure the receipt is updated so that I can perform a check on it
to determine the subscription status?
This is Mac OS X - NOT iOS.
Trygve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden