• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
SKPaymentTransaction, and Receipt on OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: why is this Swift initializer legal
  • Next by Date: Re: Using CFSTR() with const char * variable
  • Previous by thread: Re: Forwarding messages to another class
  • Next by thread: Wanted: Elegant way to manage this task
  • Index(es):
    • Date
    • Thread