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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Credit card details through code ax 2012 R2

(0) ShareShare
ReportReport
Posted on by

I have a scenario where i need to import credit card details of customers from CSV file to AX 2012 R2. Is it possible to do so. I tried my best pass parameters through classes but one way or the either things are at a dead end. Any help would be appreciated.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi Leeza

    I don't know if you have already read it, but in the link below you find the transformation library for transform the CSV to XML file.

    After that, you can import the Credit card transactions with the Standard AX process.

    blogs.msdn.com/.../importing-credit-card-statements-into-dynamics-ax-2012-using-aif-and-transformation-library.aspx

    Hope this help you.

    Regards

  • Community Member Profile Picture
    on at

    Thanks Denis. But this is not what I am looking for.  I am looking for a way to actually enter the credit card details to creditcardCust Table without the use of Ipaymentprocess interface. I was able to mimic and pass values to the interface using CreditCardPaymentCardTokenize.getFromDialog()  but unfortunately i do not see a way to suppress the interface and the credit card token generation is dependent on the response from the interface. I am looking for a way how to avid the interface. In short how to automate the Ok button on the interface and still generate the card token. Looks like the framework doesn't support that. Please let me know if you find any solution.

  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi Leeza

    As per my understanding, for you is enough to import  credit card details on CreditCardCust Table.

    So, why you don't use Excel Add-in?

    Regards

  • Community Member Profile Picture
    on at

    But would that create credit card token in the creditcardCust table? I believe we have to go through the payment sdk for that to be generated.

  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi Leeza

    I think with an extensive debug we can avoid the interface.

    Unfortunately, I never handled this requirement.

    Regards

  • Community Member Profile Picture
    on at

    Hi Leeza,

    Have you ever got the solution of it?

  • Community Member Profile Picture
    on at

    Has anyone else faced this before? we want to migrate data from CSV into AX.

  • Community Member Profile Picture
    on at

    Hi guys.

    Could you help me?

    I couldn´t even register a format to import. Did you reach this point?

  • Suggested answer
    Andrew Huey Profile Picture
    110 on at

    I'm working on something like this myself, and I think I'm at least on the right track, so I thought I'd share my approach.

    First, I'm creating a new class, inheriting from CreditCardPaymentCardTokenize. Then, I'm creating a new method in that class called getFromBatch(), which is based on the getFromDialog() method in CreditCardPaymentCardTokenize.

    In getFromBatch(), I add all the credit card properties to the requestProperties collection rather than interactionProperties. (You can see how to do that by finding the one line in getFromDialog() that adds a blank value to street address 2, and emulating it.)

    Then, I call processor.GenerateCardToken() with null as the second parameter, rather than passing in interactionProperties. This should allow you to add a credit card without the dialog.
    In your code, just instantiate this new class and initialize it the same way it's done in the CreditCardCust form. Then call getFromBatch() instead of getFromDialog().

    I don't have a live R3 environment yet though; just a test VM. So I'm not 100% sure if the payment connector is really working here. I know it looks like it is, but I'm not sure if I'd actually be able to charge against the card I created.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 28

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans