<?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 a specific type of card in VBA in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-a-specific-type-of-card-in-VBA/m-p/70931#M43619</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We always derive the card type from the card number, so we do not have an input parameter for card type. If for some reason you would like to validate that a customer has matched the card number to a particular card type, this would have to be done outside of our system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Trevor&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2020 21:09:11 GMT</pubDate>
    <dc:creator>Trevor</dc:creator>
    <dc:date>2020-03-05T21:09:11Z</dc:date>
    <item>
      <title>Validate a specific type of card in VBA</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-a-specific-type-of-card-in-VBA/m-p/70898#M43591</link>
      <description>&lt;P&gt;I've got some VBA code running in the sandbox and it works when I pass in a valid card # (based on the text guide).&amp;nbsp; But I cannot find any code samples which include the card type&amp;nbsp; so that if I enter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visa: 4111111111111111&lt;/P&gt;&lt;P&gt;it approves the transaction but if I enter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mastercard: 4111111111111111&lt;/P&gt;&lt;P&gt;it declines the transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the proper syntax in the below to pass the card type and have the sandbox validate for the cardtype and number?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If frm.chk_CardType Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; post_string = post_string &amp;amp; "cardType=" &amp;amp; URLEncode(frm.cbo_CardType) &amp;amp; "&amp;amp;"&lt;BR /&gt;End If&lt;BR /&gt;post_string = post_string &amp;amp; "x_card_num=" &amp;amp; URLEncode(frm.txtCCNum) &amp;amp; "&amp;amp;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above code does not work, as "cardType" does not appear to be a valid parameter, and it returns "This transaction has been approved" regardless of the value of cbo_CardType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 15:10:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-a-specific-type-of-card-in-VBA/m-p/70898#M43591</guid>
      <dc:creator>dalefye1</dc:creator>
      <dc:date>2020-03-03T15:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Validate a specific type of card in VBA</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-a-specific-type-of-card-in-VBA/m-p/70931#M43619</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We always derive the card type from the card number, so we do not have an input parameter for card type. If for some reason you would like to validate that a customer has matched the card number to a particular card type, this would have to be done outside of our system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Trevor&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 21:09:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Validate-a-specific-type-of-card-in-VBA/m-p/70931#M43619</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2020-03-05T21:09:11Z</dc:date>
    </item>
  </channel>
</rss>

