Get callback two times when In-App Purchases

Hi,


We found our app got a strange problem when some user charged. we got a SKPaymentTransactionStateFailed result which error code was SKErrorUnknown first, then a second SKPaymentTransactionStatePurchased result followed. Anyone known how it happened and gave us some ideas?

This happens when a user's credit card information is out of date when they initiate an IAP. The app store will queue a 'failed' transaction but not send it. The app store asks the user to update their credit card information and, if they do that, it asks the user if they want to proceed with the purchase. If the user proceeds with the purchase the app store queues a 'purchased' transaction. The app store sends all queued transactions when the user ends their interaction with the app store. Hence you get the two transactions.

Can i get a help from you by email?

At usual times, the reason is like PBK said.


But this time it turned out to be a bug of apple, and now the problem has been solved, you can try that again.

hi, the second callback, transaction.payment.applicationUsername can not achieve value , i first bind up orderid in it, how to solve , any one help me thanks?

Get callback two times when In-App Purchases
 
 
Q