Friday, 10 November 2017

How to get customer credit card number based on Expiry date using x++ code


Get customer credit card number based on Expiry date validation 

public static RefRecId getCreditCardOCP(CustAccount    _custAccount)
{
    CreditCardCust custCreditCard;

    select firstOnly RecId,ExpiryDate from custCreditCard
            where custCreditCard.CustAccount == _custAccount;

    if(custCreditCard.ExpiryDate && CreditCard::checkExpireDate(custCreditCard.ExpiryDate))
    {
        return custCreditCard.RecId;
    }

    return 0;

}

1 comment:

  1. Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. Need credit collection services commercial? Visit dlrcollectionagency.com

    ReplyDelete