Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Creating and installin...
Finance forum
Unanswered

Creating and installing custom payment connector

Posted on by 77

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
    roblipstreu 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
    tutsin 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
    roblipstreu 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
    Steve Briggs 20 on at
    RE: Creating and installing custom payment connector

    Thank you! I will.

  • tutsin Profile Picture
    tutsin 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
    PhillyNJ 77 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
    Steve Briggs 20 on at
    RE: Creating and installing custom payment connector

    Oh ok. Which connector did you get?

  • PhillyNJ Profile Picture
    PhillyNJ 77 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
    Steve Briggs 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
    tutsin 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans