Win32 converted with Desktop Bridge purchase failed.

bvp 11 Reputation points

I have created tow minimal project to reproduce the problem.
You can download from github
The shared code Store.cs is copied from microsoft's document.

Project Purchase_UWP is a UWP project, work fine.
Project Purchase_NetDestop is a Win32 project, converted with Desktop Bridge. It always return "The purchase did not complete. The customer may have cancelled the purchase. ExtendedError: ", the purchase dialog dose not show up.

Please help me with the problem, I need to add purchase for subscription in Win32 app.

Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
832 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Roy Li - MSFT 31,261 Reputation points Microsoft Vendor


    Welcome to Microsoft Q&A!

    I could not run your sample on my side. But I created a new WinForms app and test about this. The popup window shows correctly and there is no error when I purchase a subscription. I'm using windows 10 build 19041.

    You mentioned that it only happens on build 17134. Is it a signal case or it happens on all the devices with 17134? Currently, my suggestion is that you might need to set the target version higher than build 18362.

    Thank you.

  2. bvp 11 Reputation points

    I tested in Virtual machine with Windows 10.0.18362.1082, the problem still exist. Don't know why one of my computer worked.
    Is that your WinForms app a win32 project and package with Desktop bridge?
    I am buiding with target versioin 19041.
    Below is the error log. (Store have been logined in, ExtendedError is empty)

    info:Windows::Services::Store::StoreContext::RequestPurchaseAsync(9P28P93430J0) invoked. (CV:HelkHwlJxEmd+tei.2.7) [Windows::Services::Store::StoreContext::RequestPurchaseAsync]
    ModLoad: 000000006b300000 000000006b35d000 C:\Windows\SysWOW64\CoreShellAPI.dll
    :jsonRequest: {"StoreId":"9P28P93430J0","ParentProductId":"9NLVZ8WTBGW1","HasPreviewCapability":true,"Version":"3","InvokedApi":"RequestPurchase","UserId":"00037FFEBA565603","DeviceContext":"moId=Public&oemId=Public&scmId=Public","CV":"HelkHwlJxEmd+tei."} [Windows::Services::Store::PurchaseOperation::_Purchase]
    ModLoad: 000000006b280000 000000006b2ff000 C:\Windows\SysWOW64\twinui.appcore.dll
    :jsonResponse: {"purchaseStatus":"NotPurchased"} [Windows::Services::Store::PurchaseOperation::_Purchase]
    The purchase did not complete. The customer may have cancelled the purchase. ExtendedError:

  3. tscholl89 1 Reputation point

    A lot of my users are having the same problem,
    Any news on this bug?

    0 comments No comments