Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Answered

Unable to debug the PaymentConnector extension

Posted on by 45

Hi Team!

Application : Retail Modern POS, RetailSDK, RetailAndCommerce

I have extended the payment connector and trying to debug the application, However am unable to hit the debugger,

Any help or guidance would be appreciated.

Thanks!

Navneet

  • CU18080005-1 Profile Picture
    CU18080005-1 on at
    Unable to debug the PaymentConnector extension
    When you answer is "moved to ABC forum" you MUST add a link.
     
    Thanks
  • Suggested answer
    RE: Unable to debug the PaymentConnector extension

    Hi Navneet,

    Are using Dedicated HW Station or Shared HW Station (iis based).

    Please take a look from my sample:

    - Compile the project and copy the assembly Contoso.Commerce.HardwareStation.CoinDispenserSample.dll under Extension.CoinDispenserSample\bin\Debug.
    - Copy the assembly to the machine where Hardware Station was deployed.
    - Remote: For remote Hardware Station, copy to the bin\ location of Hardware Station.
    - Local: For local Hardware Station, copy to %ProgramFiles(x86)\Microsoft Dynamics 365\70\Retail Modern POS\ClientBroker.
    - Add the section below to the composition:
    <add source="assembly" value="Contoso.Commerce.HardwareStation.Extension.CoinDispenserSample" />
    - Remote: For remote Hardware Station, the composition file is web.config under the IIS deployed location.
    - Local: For local Hardware Station, the composition file is DLLHost.exe.config under the folder %ProgramFiles(x86)\Microsoft Dynamics 365\70\Retail Modern POS\ClientBroker.
    - Recycle the process after doing the above changes. If remote, the process is w3wp.exe (use iisreset). If local, it's dllhost.exe.

  • navneethegde Profile Picture
    navneethegde 45 on at
    RE: Unable to debug the PaymentConnector extension

    Hi Diogo!

    Thanks for your response.

    Retail SDK is 10.0.18

    1. I started by creating a C# project as below
    pastedimage1630441588427v1.png

    2. Updated Hardware profile as below to set it up for my mock device

    pastedimage1630441741813v2.png

    I updated the PINPAD as per MS docs

    3. I downloaded Retail mPOS and config file to install it on my dev machine

    pastedimage1630441941379v3.png

    4. I login into MPOS and add items 

    pastedimage1630442166151v4.png

    5. I attach a debugger in Visual Studio expecting it to be hit when I add item

    pastedimage1630442485909v7.png

    6. I have my PayCon project debug dll placed at ClientBroker folder and updated ExtensionConfig file composition

    pastedimage1630442355579v6.png

    Is there anything I am missing here? 

  • Suggested answer
    RE: Unable to debug the PaymentConnector extension

    Hi Navneet,

    Are you able to debug POS extension and CRT/RS classes and not Payment connector only?

    Or you are not able to debug the RetailSDk extension at all?

    Can you share what is your RetailSDK version?

    10.0.18 +

    docs.microsoft.com/.../debug-pos-extension

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,269 Super User 2024 Season 2 on at
    RE: Unable to debug the PaymentConnector extension

    Moved to the Dynamics 365 Commerce forum.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans