Problems with testing in app purchases
- by sashaeve
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.