<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Validate the Credit Card Number,Cvv code and Expairy Date in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/903#M761</link>
    <description>&lt;P&gt;Thanks David&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I implemented the same code given by you.But i entered the wrong cvv code ,its show the message the successfull.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some content of response that i got.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My account in the test mode and i am testing visa card.Please tell if i need to do some other settings in the my account.&lt;/P&gt;&lt;P&gt;The code just test the credit card number is valid,or not valid,but not the &amp;nbsp;cvv code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Nov 2009 18:44:26 GMT</pubDate>
    <dc:creator>sam_smith</dc:creator>
    <dc:date>2009-11-22T18:44:26Z</dc:date>
    <item>
      <title>Validate the Credit Card Number,Cvv code and Expairy Date</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/898#M756</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using CIM authorization.They provide all the methods in the sample code except validate the customer credit card information.Could any one give the code in C# to validate the credit card number,cvv code and expiary date?&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2009 19:56:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/898#M756</guid>
      <dc:creator>sam_smith</dc:creator>
      <dc:date>2009-11-21T19:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the Credit Card Number,Cvv code and Expairy Date</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/899#M757</link>
      <description>&lt;P&gt;Are you using SOAP or XML?&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2009 20:52:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/899#M757</guid>
      <dc:creator>itdevworks</dc:creator>
      <dc:date>2009-11-21T20:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the Credit Card Number,Cvv code and Expairy Date</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/901#M759</link>
      <description>&lt;P&gt;Thanks David for Reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the XML version of their sample code.I have &amp;nbsp;made a method for validate the customer profile followed the same instructions &amp;nbsp;in the CIM documents.Its just vaildate the credit card number.I need to validate the CVV code and expiary date also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2009 06:29:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/901#M759</guid>
      <dc:creator>sam_smith</dc:creator>
      <dc:date>2009-11-22T06:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the Credit Card Number,Cvv code and Expairy Date</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/902#M760</link>
      <description>&lt;P&gt;&lt;EM&gt;validateCustomerPaymentProfileRequest&lt;/EM&gt; takes up to five values (aside from the &lt;EM&gt;merchantAuthentication&lt;/EM&gt;).&amp;nbsp; These are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;customerProfileId&lt;/LI&gt;&lt;LI&gt;customerPaymentProfileId&lt;/LI&gt;&lt;LI&gt;customerShippingAddressId (optional)&lt;/LI&gt;&lt;LI&gt;cardCode (optional)&lt;/LI&gt;&lt;LI&gt;validationMode&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The &lt;EM&gt;cardCode&lt;/EM&gt; parameter is the CCV/CVV, and the payment profile already contains the expiration date of the card, so it is possible to validate all three.&amp;nbsp; In fact, I don't believe you can even create a payment profile without the expiration date.&amp;nbsp; I grabbed the &lt;A target="_self" href="http://developer.authorize.net/samplecode/" rel="nofollow"&gt;latest C# sample code&lt;/A&gt;[&lt;A target="_blank" href="http://developer.authorize.net/samplecode/" rel="nofollow"&gt;^&lt;/A&gt;], and added a new method to the Program class that utilizes the provided &lt;EM&gt;validateCustomerPaymentProfileRequest&lt;/EM&gt; class in the same way that the other "request" classes are used.&amp;nbsp; Here is that method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/// &amp;lt;summary&amp;gt;
/// Validate the payment profile
/// &amp;lt;/summary&amp;gt;
/// &amp;lt;param name="profile_id"&amp;gt;
///     The customer profile id we are doing this for&amp;lt;/param&amp;gt;
/// &amp;lt;param name="PaymentProfileID"&amp;gt;
///     The payment profile id that we are validating&amp;lt;/param&amp;gt;
/// &amp;lt;param name="cardCode"&amp;gt;
///     The card validation code (CCV) to validate with.  Optional.&amp;lt;/param&amp;gt;
/// &amp;lt;returns&amp;gt;
///     &amp;lt;strong&amp;gt;True&amp;lt;/strong&amp;gt; if the payment profile validates; Otherwise
///     &amp;lt;strong&amp;gt;False&amp;lt;/strong&amp;gt;.
/// &amp;lt;/returns&amp;gt;
public static bool ValidateCustomerPaymentProfile(long profile_id,
                                                  string PaymentProfileID,
                                                  string cardCode)
{
    bool out_bool = false;

    // Setup the request
    validateCustomerPaymentProfileRequest request =
        new validateCustomerPaymentProfileRequest();
    XmlAPIUtilities.PopulateMerchantAuthentication((ANetApiRequest)request);

    // Set the properties on the request
    request.customerProfileId = profile_id.ToString();
    request.customerPaymentProfileId = PaymentProfileID;
    request.cardCode = cardCode;
    request.validationMode = validationModeEnum.liveMode;

    // Send the request and get the response
    System.Xml.XmlDocument response_xml = null;
    bool bResult = XmlAPIUtilities.PostRequest(request, out response_xml);
    object response = null;
    validateCustomerPaymentProfileResponse api_response = null;

    // See what the response was
    if (bResult)
    {
        bResult = XmlAPIUtilities.ProcessXmlResponse(response_xml, out response);
    }
    if (!(response is validateCustomerPaymentProfileResponse))
    {
        ANetApiResponse ErrorResponse = (ANetApiResponse)response;
        Console.WriteLine(String.Format(
            "Validate Payment Profile\n	 code: {0}\n	  msg: {1}",
            ErrorResponse.messages.message[0].code,
            ErrorResponse.messages.message[0].text));
        return out_bool;
    }
    if (bResult) api_response = (validateCustomerPaymentProfileResponse)response;
    if (api_response != null)
    {
        out_bool = true;
        Console.WriteLine(String.Format(
            "Validate Payment Profile\n	 code: {0}\n	  msg: {1}",
            api_response.messages.message[0].code,
            api_response.messages.message[0].text));
    }

    return out_bool;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to compile and run this without problems.&amp;nbsp; Let me know if you have any problem with&amp;nbsp;this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMPORTANT: Please note that&amp;nbsp;on a live account when a validation is submitted with validationMode = "liveMode", then the merchant account associated with&amp;nbsp;the Authorize.net &lt;EM&gt;account will be charged&amp;nbsp;transaction &lt;/EM&gt;fees.&amp;nbsp; I wrote a &lt;A target="_self" href="http://drp.itdevworks.com/index.php/2009/10/authorize-net-per-transaction-charge-on-validating-cim-paymentprofile/" rel="nofollow"&gt;blog post&lt;/A&gt;[&lt;A target="_blank" href="http://drp.itdevworks.com/index.php/2009/10/authorize-net-per-transaction-charge-on-validating-cim-paymentprofile/" rel="nofollow"&gt;^&lt;/A&gt;] about this.&amp;nbsp; Also, very recently, Visa has imposed rules about validating credit cards.&amp;nbsp; By using CIM's &lt;EM&gt;validateCustomerPaymentProfileRequest&lt;/EM&gt; feature, you should automatically be in compliance with the new Visa mandates,&amp;nbsp;depending somewhat on the payment processor used by your merchant service provider.&amp;nbsp; You can read the full details of this in &lt;A target="_self" href="http://community.developer.authorize.net/t5/News-and-Announcements/Authorize-Net-Support-of-Visa-Mandates/m-p/518#U518" rel="nofollow"&gt;this forum announcement&lt;/A&gt;[&lt;A target="_blank" href="http://community.developer.authorize.net/t5/News-and-Announcements/Authorize-Net-Support-of-Visa-Mandates/m-p/518#U518" rel="nofollow"&gt;^&lt;/A&gt;].&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2009 16:14:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/902#M760</guid>
      <dc:creator>itdevworks</dc:creator>
      <dc:date>2009-11-22T16:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the Credit Card Number,Cvv code and Expairy Date</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/903#M761</link>
      <description>&lt;P&gt;Thanks David&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I implemented the same code given by you.But i entered the wrong cvv code ,its show the message the successfull.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some content of response that i got.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My account in the test mode and i am testing visa card.Please tell if i need to do some other settings in the my account.&lt;/P&gt;&lt;P&gt;The code just test the credit card number is valid,or not valid,but not the &amp;nbsp;cvv code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2009 18:44:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/903#M761</guid>
      <dc:creator>sam_smith</dc:creator>
      <dc:date>2009-11-22T18:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the Credit Card Number,Cvv code and Expairy Date</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/904#M762</link>
      <description>&lt;P&gt;If you test against the Test Server (using your test account), your account is in Test Mode, or you set the &lt;EM&gt;validationMode&lt;/EM&gt; to "testMode", then Authorize.net will not actually submit the validation request to the payment processor so the full card is not actually validated.&amp;nbsp; Try validating a card using your Live Account, with Test Mode disabled, and the &lt;EM&gt;validationMode&lt;/EM&gt; set to "liveMode".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually also have a &lt;A target="_self" href="http://drp.itdevworks.com/index.php/2009/10/authorize-net-terminology-overload-test-vs-live/" rel="nofollow"&gt;blog post&lt;/A&gt;[&lt;A target="_blank" href="http://drp.itdevworks.com/index.php/2009/10/authorize-net-terminology-overload-test-vs-live/" rel="nofollow"&gt;^&lt;/A&gt;] on the various meanings of "live" vs. "test", in the context of Authorize.net, if any of my terminology here is not clear.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2009 18:50:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/904#M762</guid>
      <dc:creator>itdevworks</dc:creator>
      <dc:date>2009-11-22T18:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the Credit Card Number,Cvv code and Expairy Date</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/20234#M11101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to call&amp;nbsp;ValidateCustomerPaymentProfile to validate payment profile for my customer. I am using SOAP and not xml and calling webmethod directly. webmethod defination says that customershippingAddressID is long input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i try to pass 0 as a parameter(considering it's optional) its giving me e00040 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I cannot leave it blank as I am directly calling api's webmethod which is expecting long value in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is any other value i need to pass it for this webmethod to work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aparikh&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2011 08:52:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/20234#M11101</guid>
      <dc:creator>aparikh</dc:creator>
      <dc:date>2011-12-18T08:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Validate the Credit Card Number,Cvv code and Expairy Date</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/20238#M11103</link>
      <description>&lt;P&gt;It work for me based on the c# soap sample code. With 0 as the shippingaddressID. Did the response message text said is the shippingAddressID?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2011 11:07:28 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-the-Credit-Card-Number-Cvv-code-and-Expairy-Date/m-p/20238#M11103</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-12-18T11:07:28Z</dc:date>
    </item>
  </channel>
</rss>

