Re: Deferred purchase testing in the App Store sandbox?
Thanks, Dave. I took a similar route myself for debug builds, to test that my UI was behaving correctly. I just was hoping that there was a more official way to test it so that the payment queue was fully in charge. On Sep 29, 2014, at 2:33 PM, David Brittain websi...@paperetto.com wrote: The best I could come up with was to change the build I was testing so that on receiving SKPaymentTransactionStatePurchased I store the transactions, replace the state with SKPaymentTransactionStateDeferred and then [self performSelector:@selector(deferredPaymentQueue:) withObject:_savedTransactions afterDelay:10.0f]; with: - (void)deferredPaymentQueue:(NSArray *)transactions { [self paymentQueue:nil updatedTransactions:transactions]; } This at least proves that my UI behaves the right way in the event of SKPaymentTransactionStateDeferred. It's a hack but helped me feel somewhat better that the code worked. Dave On Mon, Sep 29, 2014 at 12:03 PM, Steve Christensen puns...@mac.com wrote: I'm trying to figure out how to test deferred purchases (SKPaymentTransactionStateDeferred) in the sandbox but thus far have not been able to find any guidance. In chatting with The Google I see questions in Apple's developer forums, stack overflow.com, etc., but no answers. Has anybody had success in this area? Thanks, Steve -- David Brittain da...@paperetto.com ___ 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
Deferred purchase testing in the App Store sandbox?
I'm trying to figure out how to test deferred purchases (SKPaymentTransactionStateDeferred) in the sandbox but thus far have not been able to find any guidance. In chatting with The Google I see questions in Apple's developer forums, stack overflow.com, etc., but no answers. Has anybody had success in this area? Thanks, Steve ___ 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
Re: Deferred purchase testing in the App Store sandbox?
The best I could come up with was to change the build I was testing so that on receiving SKPaymentTransactionStatePurchased I store the transactions, replace the state with SKPaymentTransactionStateDeferred and then [self performSelector:@selector(deferredPaymentQueue:) withObject:_savedTransactions afterDelay:10.0f]; with: - (void)deferredPaymentQueue:(NSArray *)transactions { [self paymentQueue:nil updatedTransactions:transactions]; } This at least proves that my UI behaves the right way in the event of SKPaymentTransactionStateDeferred. It's a hack but helped me feel somewhat better that the code worked. Dave On Mon, Sep 29, 2014 at 12:03 PM, Steve Christensen puns...@mac.com wrote: I'm trying to figure out how to test deferred purchases (SKPaymentTransactionStateDeferred) in the sandbox but thus far have not been able to find any guidance. In chatting with The Google I see questions in Apple's developer forums, stack overflow.com, etc., but no answers. Has anybody had success in this area? Thanks, Steve ___ 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/websites%40paperetto.com This email sent to websi...@paperetto.com -- David Brittain da...@paperetto.com ___ 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