Note that there are some explanatory texts on larger screens.

plurals
  1. POIn App Purchase payment dialog not showing on Mac OS Lion
    text
    copied!<p>I am writing an mac application for the Mac App Store that uses in app purchase. I double checked and I think I have implemented everything correctly. So when I am making a product request the delegate method </p> <pre><code>- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response </code></pre> <p>is called, with the correct product id. Then I make a payment using </p> <pre><code>[[SKPaymentQueue defaultQueue] addPayment:payment]; </code></pre> <p>The issue appears at this point. In the first 10-15 minutes the purchase dialog does not show up at all, and I neither do I receive the <code>updatedTransactions</code> notification. After some time if I try again, everything works correctly, I am prompted in 1-2 seconds for my credentials. This seems very strange for me, because they should work from the start. Because of this my app was rejected several times, stating that in app purchases do not work.</p> <p>Yes, I have added the receipt verification code, and if it doesn't exist then I exit the app with code 173, I am prompted for my credentials, then the app reopens but the in apps do not work even after this. And yes, I have tested this with a built that has been created with a distribution profile. I am using XCode 4.2, and my OS is Lion.</p> <p>After adding the payment to the queue, I tried starting a timer to check the <code>transactions</code> property of <code>SKPaymentQueue</code> periodically. The <code>transactionIdentifier</code> is the correct one, and it's <code>transactionState</code> is <code>SKPaymentTransactionStatePurchasing</code>. This tells me that there is some communication issue between <code>StoreKit</code> and the Apple servers.</p> <p>Anyone else experienced this issue? Any help would be appreciated, I am struggling with this for 3 days now and could not find a solution for this, and it's driving me crazy.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload