web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Commerce forum / HardwareStation.Extens...
Commerce forum

HardwareStation.Extension.PaymentSample

(1) ShareShare
ReportReport
Posted on by

Hi,
I'm new to Dynamics.
I'd like create something similar to the 

HardwareStation.Extension.PaymentSample  example. 
I have generated the DLL & dropped it in the RetailServer\WebRoot\bin\ext folder

and referenced the dll in the commerceRuntime.ext.config file.
I get this error when I start ModernPOS: 

The server API has failed.

Where am I going wrong ?
Thank you.

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi,

      You are trying to extend the hardware station but not the retail server, please go through example Paymentsample. Changes are made to hardwarestation.ext.config file.

  • SergeyP Profile Picture
    2,928 on at

    As was mentioned in the previous comment your questions looks contradicting - it is not clear what you are extending - RS or HS. If HS then please explain why you are dealing with RS extensions.

    Are you getting that error in MPOS UI or in the Event Viewer? If in UI - please look into Event Viewer in both locations:

    a) for Hardware Station: Microsoft->Dynamics->Commerce-HardwareStation->Informational (also enable Debug log, reproduce the problem and look into the Debug one)

    b) for MPOS: Microsoft->Dynamics->Commerce-ModernPOS->Informational (the same ask for Debug as above)

    c) If you are dealing with RS extensions - then please have a look into the log at Microsoft->Dynamics-Commerce-RetailServer (the same 2 - Debug and Informational).

    You should find events which might give you an idea what went wrong.

  • Community Member Profile Picture
    on at

    Thank you.

  • Community Member Profile Picture
    on at

    Hi,

    Thanks for your reply.

    I'm extending the HardwareStation.  I realise that I need to update the code in the 

    HardwareStation.Extension.PaymentSample
    then update:
    hardwarestation.ext.config file.

    I'm building a payment connector, I've updated PaymentSdk.sln and now I'm updating the SampleHardwareStation.sln (HardwareStation.Extension.PaymentSample)
    So, hopefully, once I finish the coding & update the config file everything will fall into place.

    Just a quick question... Which simulator being mentioned here?:
                /// <summary>
                /// Executes the payment device simulator operation based on the incoming request type.
                /// </summary>
                /// <param name="request">The payment terminal device simulator request message.</param>
                /// <returns>Returns the payment terminal device simulator response.</returns>
                public Microsoft.Dynamics.Commerce.Runtime.Messages.Response Execute(Microsoft.Dynamics.Commerce.Runtime.Messages.Request request)

    Can I use this simulator to test my payment connector ?
    Thanks

  • SergeyP Profile Picture
    2,928 on at

    Peripheral simulator for Retail

  • Community Member Profile Picture
    on at

    Thank you.

  • Oksana Kovaliova Profile Picture
    3,597 on at

    Hi,

    If you create new payment device, you should drop files to Hardware Station, not to Retail server.

    Please, check the following articles - they describe in details what to do. If you have any questions, you are welcome to ask

    docs.microsoft.com/.../end-to-end-payment-extension

    docs.microsoft.com/.../deploy-payment-connector

  • Jose Fuentes Profile Picture
    140 on at

    Hi Oksana

    I have some questions about the link that you've shared.

    https://docs.microsoft.com/en-us/dynamics365/unified-operations/retail/dev-itpro/end-to-end-payment-extension#write-a-payment-processor

    According to the link I have implement 2 assemblies, de payment connector which already exists as a sample project (Payment Sample) and the payment processor, in that case I have to create another assembly project, implementing the methods that are mentioned in the link, to create another assembly which must be added in the IPaymentDeviceFolder and in the config file.

    I followed (at least I tried) the steps but I haven't made it works.

    Am I correct in my procedure or there is something wrong?

    Additional.

    I have worked on the Retail POS and extending the EFT project to implement a payment interface provided by the bank. How did it works? in the getCardInfo method I collected the amount and customer info, and there is a ProcessPayment method where I invoke the bank dll which has its own interface to collect the card info through the pin pad and that is all.

    I have found similarities with the Hardware Station Samples but as I said I haven't made it works yet.

    If you have any suggestion, I would appreciate.

    Regards

    Jose Fuentes

  • mohammed.mqi Profile Picture
    2,050 on at

    me trying to linked EFT device with ax2012 POS

    but i didn't find HardwareStation.Extension.FiscalRegisterSample.csproj or HardwareStation.Extension.PaymentSample

  • Oksana Kovaliova Profile Picture
    3,597 on at

    Hi Mohammed, these extensions are for D365. In AX2012 Payment classes should be inside Hardware station solution

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Commerce

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans