Answered by:
IAP Certification Problem

Question
-
my application failed certification on microsoft for add in app purchase
The application terminates unexpectedly in response to user input.Steps to Reproduce:1. Launch the application.2. Tap the screen to bring up the bar.3. Select the "Shopping Cart" icon.4. Notice the application unexpectedly terminates.
how can i pass the certification i add product but before it be live
DesertQueen
Tuesday, July 30, 2013 12:13 PM
Answers
-
Hi,
You need just try/catch block just to solve this issue.
http://social.msdn.microsoft.com/Forums/wpapps/en-us/31d86b03-29f3-471b-86ca-b6fd09f8e423/iap-exception-if-choose-cancel-in-confirm-screen-error-hresult-efail-has-been-returned-from-a-call
Regards,
Arslan Pervaiz- Marked as answer by DevWP Thursday, August 1, 2013 10:12 AM
Thursday, August 1, 2013 10:05 AM
All replies
-
It is hard to tell without some sort of repro however if you look at the 'Top related threads' links on the left, you will see some general threads of how this has been resolved by others.
Generally, test for exceptions and don't assume connectivity. Test with no network etc...
-Jeff
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions @WSDevSol
Getting Started With Windows Azure Mobile Services development? Click here
Getting Started With Windows Phone or Store app development? Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support)Wednesday, July 31, 2013 2:57 PM -
i saw all of them and my problem is different of them .
i read http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681689(v=vs.105).aspx
but i didn't reach to any thing
DesertQueen
- Edited by DevWP Wednesday, July 31, 2013 4:29 PM update
Wednesday, July 31, 2013 4:21 PM -
Hi,
Did you tested your app with demo IAP Products. Please add test products and test first before going for app publishing.
Here is detailed link how to test IAP on development stage.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681689%28v=vs.105%29.aspx
Regards,
Arslan PervaizWednesday, July 31, 2013 6:23 PM -
yes Arslan Pervaiz that is the link i read i could not
Deploy the mock service on a local machine and when i take storefront from the moc sample
i receive this exception
Error HRESULT E_FAIL has been returned from a call to a COM component. COM component
DesertQueen
Wednesday, July 31, 2013 6:30 PM -
i can't test iap purchase before upload i don't know what is wrong in my code
DesertQueen
Wednesday, July 31, 2013 6:33 PM -
Hi D,
We cannot guess what your code is doing so you will need to post a complete sample that illustrates the problem or open a support case with Microsoft at http://support.microsoft.com/oas
-Jeff
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions @WSDevSol
Getting Started With Windows Azure Mobile Services development? Click here
Getting Started With Windows Phone or Store app development? Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support)Wednesday, July 31, 2013 6:47 PM -
i upload xap into store and take the App ID and put in WMAppManifset then i add a product into app in store then i use that to buy product
var listing = await CurrentApp.LoadListingInformationAsync();
var product =
listing.ProductListings.FirstOrDefault(p => p.Value.ProductId == "22333" && p.Value.ProductType == ProductType.Durable);
if (CurrentApp.LicenseInformation.ProductLicenses[product .Value.ProductId].IsActive)
{
MessageBox.Show(AppResources.lblBuyMsg);
}
else
{
receipt = bool.Parse(await CurrentApp.RequestProductPurchaseAsync(product .Value.ProductId, false));
}
it throw exception
Exception from HRESULT: 0x805A0194
at var listing = await CurrentApp.LoadListingInformationAsync();DesertQueen
Thursday, August 1, 2013 7:38 AM -
Hi,
You need just try/catch block just to solve this issue.
http://social.msdn.microsoft.com/Forums/wpapps/en-us/31d86b03-29f3-471b-86ca-b6fd09f8e423/iap-exception-if-choose-cancel-in-confirm-screen-error-hresult-efail-has-been-returned-from-a-call
Regards,
Arslan Pervaiz- Marked as answer by DevWP Thursday, August 1, 2013 10:12 AM
Thursday, August 1, 2013 10:05 AM