Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Creating and installing custom payment connector

(0) ShareShare
ReportReport
Posted on by 81

Hi,

I have been tasked with using a 3rd party API to authorize credit card payments in D365 F&O. I found this link, Create an end-to-end payment integration for a payment terminal. Usually, I would expect the extension to be written in X++, however the example is using C#, so I am a bit confused. Can someone provide a better tutorial or a high level explanation of how to implement a custom payment connector? 

  • roblipstreu Profile Picture
    45 on at
    RE: Creating and installing custom payment connector

    Thank you for responding! I am reading that was the old deprecated method of creating the package.

    learn.microsoft.com/.../payment-connector-package

    "...The previous approach, where the Commerce SDK is used to create Application Explorer payment packaging, is obsolete (deprecated) as of the 10.0.10 release...."

    I have added these dependent System.ServiceModel DLLs as references in my "RetailPaymentConnectors.*" package, and I can see them in my package bin directory. But it won't load the connector.

    Do you know if there is any logging anywhere by the PaymentSDKManager.PaymentProcessorManager to know why it isn't loading a connector?

  • tutsin Profile Picture
    20 on at
    RE: Creating and installing custom payment connector

    You have to add System.ServiceModel.dll to the following folder with your payment connector

    RetailSDK\PaymentExternal\IPaymentProcessorAssemblies

    And also you have to add it to the bin folder of your Commerce payment connector model.

    It seems D365 cannot load the connector without having a copy of dll.

  • roblipstreu Profile Picture
    45 on at
    RE: Creating and installing custom payment connector

    I started our connector off with the framework provided in the Sample connector found in "C:\RetailSDK\Payments\Connector.Sample".

    Following this documentation, I am able to get the connector to be loaded by D365 as an available connector in the Payment services form:

    learn.microsoft.com/.../payment-connector-package

    But as soon as I add a reference to System.ServiceModel (added nuget package, and wrote code referencing it), the connector fails to be loaded by D365. Any ideas on this? I even tried adding the System.ServiceModel DLL as a reference in the payment connector package to no avail. Need to call our processors web-services from the connector as we did in AX 2012 connector.

    Thanks!

  • Steve Briggs Profile Picture
    20 on at
    RE: Creating and installing custom payment connector

    Thank you! I will.

  • tutsin Profile Picture
    20 on at
    RE: Creating and installing custom payment connector

    We are working on a Braintree connector now, it supports card payments and PayPal, currently working on Venmo integration. You can ping me - k@tutsin.co

  • PhillyNJ Profile Picture
    81 on at
    RE: Creating and installing custom payment connector

    Adyen -https://docs.microsoft.com/en-us/dynamics365/commerce/dev-itpro/adyen-connector?tabs=10-0-23

  • Steve Briggs Profile Picture
    20 on at
    RE: Creating and installing custom payment connector

    Oh ok. Which connector did you get?

  • PhillyNJ Profile Picture
    81 on at
    RE: Creating and installing custom payment connector

    No - I was lucky and my company purchased a 3rd party connector.

  • Steve Briggs Profile Picture
    20 on at
    RE: Creating and installing custom payment connector

    Hello. It looks like I too need to create a customer payment connector to F&O to process through Braintree. Did you succeed at this?

  • tutsin Profile Picture
    20 on at
    RE: Creating and installing custom payment connector

    In a nutshell.

    1. Please check the sample implementation of the payment connector. You can find an example in the RetailSDK folder - K:\RetailSDK\Payments\Connector.Sample

    Pay attention to the IPaymentProcessor interface implementation.

    2. Compile the project and generate dll

    3. Create a model for connector deployment. Please follow the article.

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

    Use the DLL from step 2.

    4. Restart IIS

    5. Go to the following form Accounts receivable -> Payments setup -> Payment services

    6. Click add and see if your new connector is available.

    7. And the most important step is - Implement your connector. You have to implement the most common methods - Authorize/Capture/Refund/Void, etc.

    Kanstantsin Tutsin

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,274 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,939 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans