Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9327619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T05:22:58+00:00 2026-06-19T05:22:58+00:00

Building In-App Purchases in a Windows Store App requires using the In-App Purchase Simulator.

  • 0

Building In-App Purchases in a Windows Store App requires using the In-App Purchase Simulator. It is almost identical to the real In-App Purchase Namespace. While building my app, I use the simulator. I have reserved my name in the Store. I have even created an In-App Purchase in the Store for my App. Is there a way to test the real IAP before submitting my app for Certification?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T05:22:59+00:00Added an answer on June 19, 2026 at 5:22 am

    No, In-App Purchases are not “real” in the Windows Store until your app is submitted for Certification. That means your final step before submission is to swap out the Simulator code for the real code. And, yes, it means you cannot test your real code – the Store tester will be the first to test it for you.

    One more thing

    Having said that, I created a helper class that wraps both the real and the simulator API. Though it will only help 90% of the use cases out there, it is perfect for those 90%. I have validated the code with the IAP product team and submitted real apps that use it.

    You can find this helper here: http://codepaste.net/rqwtcy

    Here’s the syntax if you want to remove advertisements, for example…

    I add it to my View Model like this:

    public async Task Start()
    {
        // in app purchase setup
        m_HideAdsFeature = await new InAppPurchaseHelper(HIDEADSFAETURENAME,
            System.Diagnostics.Debugger.IsAttached).Setup();
        this.HideAds = m_HideAdsFeature.IsPurchased;
    }
    
    bool m_HideAds = false;
    public bool HideAds { get { return m_HideAds; } set { SetProperty(ref m_HideAds, value); } }
    
    const string HIDEADSFAETURENAME = "HideAds";
    InAppPurchaseHelper m_HideAdsFeature;
    
    // http://codepaste.net/ho9s5a
    DelegateCommand m_PurchaseHideAdsCommand = null;
    public DelegateCommand PurchaseHideAdsCommand
    {
        get
        {
            if (m_PurchaseHideAdsCommand != null)
                return m_PurchaseHideAdsCommand;
            m_PurchaseHideAdsCommand = new DelegateCommand(
                PurchaseHideAdsCommandExecute, PurchaseHideAdsCommandCanExecute);
            this.PropertyChanged += (s, e) => m_PurchaseHideAdsCommand.RaiseCanExecuteChanged();
            return m_PurchaseHideAdsCommand;
        }
    }
    async void PurchaseHideAdsCommandExecute()
    {
        PauseCommandExecute();
        await m_HideAdsFeature.Purchase();
        HideAds = m_HideAdsFeature.IsPurchased;
    }
    bool PurchaseHideAdsCommandCanExecute()
    {
        if (m_HideAdsFeature == null)
            return false;
        return !m_HideAdsFeature.IsPurchased;
    }
    

    I add it to my XAML like this:

    <UI:AdControl x:Name="MyAdControl"
        Width="250" Height="250"
        HorizontalAlignment="Left" VerticalAlignment="Top"
        AdUnitId="10043107" ApplicationId="d25517cb-12d4-4699-8bdc-52040c712cab"
        Visibility="{Binding HideAds,
                Converter={StaticResource CollapsedWhenTrueConverter}}" />
    

    Best of luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an app that uses In app purchase. I'm using non-consumable product types.
I'm building app using GAE and wanted to use Django for that. Which patch
I'm building an app in Backbone using Node as the backend. As part of
Im building an app that requires the user to login with and ID and
I'm building an app using Xcode 4.5.1, Cordova/Phonegap 2.1 with the ChildBrowser plugin. I
I am building a django app that requires some currency entries. I am trying
Building an app using Phonegap and jquery on Android using this code to request
Im building an app for Windows phone 7. I have a panorama page with
Im building an app using kohana. I need to be able to upload files
I'm building an App using Meteor and am a little unclear how all the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.