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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to