Problems with testing in app purchases
Posted
by sashaeve
on Stack Overflow
See other posts from Stack Overflow
or by sashaeve
Published on 2010-04-01T15:24:53Z
Indexed on
2010/04/01
15:33 UTC
Read the original article
Hit count: 344
iphone-sdk
|in-app-purchase
I am trying to test my application with in app purchases. I created features, test user, logged out from iTunes on the iPhone and used developer certificate. Load app from XCode in debug mode.
When I click "Buy" button I pass all checks for internet availability, canMakePayments and call
SKPayment *payment = [SKPayment paymentWithProductIdentifier:featureId];
[[SKPaymentQueue defaultQueue] addPayment:payment];
But all what I see is a pending view and after some minutes it failed in
- (void) failedTransaction: (SKPaymentTransaction *)transaction
{
if (transaction.error.code != SKErrorPaymentCancelled)
{
NSLog(@"failedTransaction");
}
[[MKStoreManager sharedManager] paymentCanceled];
[[SKPaymentQueue defaultQueue] finishTransaction: transaction];
}
Please advice in what direction I should go to figure out the problem and what else I should check.
P.S. All related questions on SO were checked with no luck.
© Stack Overflow or respective owner