Wednesday, February 16, 2011

How does Dynamics NAV validates the Credit Card number for Online Payments

Dynamics NAV 2009 R2 has a new feature called “Online Services” and using this functionality you can accept and process credit card payments in Microsoft Dynamics NAV.This online credit card payment feature automates authorizing credit card amounts at the time of the order and processing the actual charge when the order is shipped and invoiced.

In order to use this online payment services, you need to setup payment services, customer payment methods and credit cards for the customers. While setting up the Number field in the Credit Card page (Customer Card—>Customers—>Credit Cards), Dynamics NAV automatically validates value for the correct credit card number and gives the error message for invalid credit card numbers.


This validation is not a real credit card number validation from the service providers but uses the algorithm called “Modulus10”. This algorithm was designed to protect against accidental errors, not malicious attacks. Most credit cards and many government identification numbers use the algorithm as a simple method of distinguishing valid numbers from collections of random digits. You can find the related C/AL code in the codeunit 827 “DO Payment Card Validation” function “IsModulus10”.


  1. I am not quite familiar with Microsoft Dynamics NAV. But thanks for introducing it. It will be very helpful for online businesses.

  2. This comment has been removed by the author.

  3. I have read for the first time on Microsoft Dynamics NAV.its interesting.

    hotel key cards
    membership card printing

  4. I dont have enough knowledge of Microsoft Dynamics NAV.want to know more about microsoft dynamics navision.

  5. Thank you for the detailed explanation about NAV dynamics erp system validating the credit card number for online payments. I didn’t know how to use this online payment services and how to setup it until found your post. Thanks for help :)

  6. Thank you so much for taking the time for you personally to share such a nice info. I definitely enjoying every little bit of it. It is a great website and nice share.
    Credit card services

  7. has become a trade leader within the on-line marketplace for bourgeois account services. we tend to offer credit card payment services for high  risk merchants within the usa and differentcountries.
    credit card processor

  8. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. Maquininha UOL Pag Seguro