ios - SKPaymentTransaction stuck -


i got annoying issue regarding in app purchases on ios (consumable).

case

  • i create payment request
  • i enter credentials , confirm purchase.
  • i quit app before purchase confirmed apple
  • i receive popup springboard (app being killed) saying payment processed.

problem

when launch app again add transaction observer (all delegate method being implemented) doing:

[[skpaymentqueue defaultqueue] addtransactionobserver:self]; 

i log pending transactions , current state right after that:

    [[skpaymentqueue defaultqueue] addtransactionobserver:self];     /*        logging content of[skpaymentqueue defaultqueue].transactions        shows transaction state of skpaymenttransactionstatepurchased     */ 

but transactions seems blocked since never calls

- (void)paymentqueue:(skpaymentqueue *)queue updatedtransactions:(nsarray *)transactions 

the thing might have been called previous time crashed/quit before calling

[[skpaymentqueue defaultqueue] finishtransaction:transaction];

since finishtransaction: never called transaction it's normal it's still pending paymentqueue:updatedtransactions: should called transaction right?

edit: asked itunes password @ every launch giving password or not not change problem.

this fixed.

i using remote notifications sdk , tracking purchases (so able send notifications specific paying users). sdk adding transactionobserver before payment system , wasn't doing it. means updatetransaction method called remote notif sdk aware of update.

after contacting support assured fixed in latest sdk version , upgrading did trick.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -