<?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 Getting issue with Discover Card Type in Payment using Customer Payment Profile in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-issue-with-Discover-Card-Type-in-Payment-using-Customer/m-p/66486#M40020</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I am getting CVV error for Discover card type response code 'S', while we have set CVV in the customer's payment profile. I am providing the code snippet for Node SDK with this E-mail. Please look into it and let me know if there is an issue in our code snippet.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also sometimes it returns&amp;nbsp;&lt;STRONG&gt;"&lt;SPAN&gt;No default payment/shipping profile found.&lt;/SPAN&gt;"&amp;nbsp;&lt;/STRONG&gt;while for some it works perfectly.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;P.S.: We have to set S code to decline as per Client's requirement for fraud detection. This is an issue with only Discover Card, others are working fine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt; // set credit card details
  var creditCard = new ApiContracts.CreditCardType();
  creditCard.setCardNumber(cardData.cardNumber);
  creditCard.setExpirationDate(
    cardData.expirationMonth + cardData.expirationYear
  );
  creditCard.setCardCode(cardData.cvv);

  // set payment method
  var paymentType = new ApiContracts.PaymentType();
  paymentType.setCreditCard(creditCard);

var customerPaymentProfileType = new ApiContracts.CustomerPaymentProfileType();
  customerPaymentProfileType.setCustomerType(
    ApiContracts.CustomerTypeEnum.INDIVIDUAL
  );
  // set payment type
  customerPaymentProfileType.setPayment(paymentType);
  // set customer address as billing details
  customerPaymentProfileType.setBillTo(customerAddress);
  customerPaymentProfileType.setDefaultPaymentProfile(true);
var profileToCharge = new ApiContracts.CustomerProfilePaymentType();
   profileToCharge.setCustomerProfileId(currentUser.customerProfileId);
 const transactionSettings = new ApiContracts.ArrayOfSetting([
      {
        settingName: ApiContracts.SettingNameEnum.DUPLICATEWINDOW,
        settingValue: 0,
      },
    ]);
    var transactionRequestType = new ApiContracts.TransactionRequestType();
    transactionRequestType.setTransactionType(
      ApiContracts.TransactionTypeEnum.AUTHCAPTURETRANSACTION
    );
    transactionRequestType.setProfile(profileToCharge);
    transactionRequestType.setAmount(price.toFixed(2));
    transactionRequestType.setLineItems(lineItems);
    transactionRequestType.setOrder(orderDetails);
    transactionRequestType.setShipTo(shipTo);
    transactionRequestType.setBillTo(billTo);
    transactionRequestType.setTransactionSettings(transactionSettings);
   &lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 21 Feb 2019 13:18:21 GMT</pubDate>
    <dc:creator>sonuchapter247</dc:creator>
    <dc:date>2019-02-21T13:18:21Z</dc:date>
    <item>
      <title>Getting issue with Discover Card Type in Payment using Customer Payment Profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-issue-with-Discover-Card-Type-in-Payment-using-Customer/m-p/66486#M40020</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I am getting CVV error for Discover card type response code 'S', while we have set CVV in the customer's payment profile. I am providing the code snippet for Node SDK with this E-mail. Please look into it and let me know if there is an issue in our code snippet.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also sometimes it returns&amp;nbsp;&lt;STRONG&gt;"&lt;SPAN&gt;No default payment/shipping profile found.&lt;/SPAN&gt;"&amp;nbsp;&lt;/STRONG&gt;while for some it works perfectly.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;P.S.: We have to set S code to decline as per Client's requirement for fraud detection. This is an issue with only Discover Card, others are working fine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt; // set credit card details
  var creditCard = new ApiContracts.CreditCardType();
  creditCard.setCardNumber(cardData.cardNumber);
  creditCard.setExpirationDate(
    cardData.expirationMonth + cardData.expirationYear
  );
  creditCard.setCardCode(cardData.cvv);

  // set payment method
  var paymentType = new ApiContracts.PaymentType();
  paymentType.setCreditCard(creditCard);

var customerPaymentProfileType = new ApiContracts.CustomerPaymentProfileType();
  customerPaymentProfileType.setCustomerType(
    ApiContracts.CustomerTypeEnum.INDIVIDUAL
  );
  // set payment type
  customerPaymentProfileType.setPayment(paymentType);
  // set customer address as billing details
  customerPaymentProfileType.setBillTo(customerAddress);
  customerPaymentProfileType.setDefaultPaymentProfile(true);
var profileToCharge = new ApiContracts.CustomerProfilePaymentType();
   profileToCharge.setCustomerProfileId(currentUser.customerProfileId);
 const transactionSettings = new ApiContracts.ArrayOfSetting([
      {
        settingName: ApiContracts.SettingNameEnum.DUPLICATEWINDOW,
        settingValue: 0,
      },
    ]);
    var transactionRequestType = new ApiContracts.TransactionRequestType();
    transactionRequestType.setTransactionType(
      ApiContracts.TransactionTypeEnum.AUTHCAPTURETRANSACTION
    );
    transactionRequestType.setProfile(profileToCharge);
    transactionRequestType.setAmount(price.toFixed(2));
    transactionRequestType.setLineItems(lineItems);
    transactionRequestType.setOrder(orderDetails);
    transactionRequestType.setShipTo(shipTo);
    transactionRequestType.setBillTo(billTo);
    transactionRequestType.setTransactionSettings(transactionSettings);
   &lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Feb 2019 13:18:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-issue-with-Discover-Card-Type-in-Payment-using-Customer/m-p/66486#M40020</guid>
      <dc:creator>sonuchapter247</dc:creator>
      <dc:date>2019-02-21T13:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue with Discover Card Type in Payment using Customer Payment Profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-issue-with-Discover-Card-Type-in-Payment-using-Customer/m-p/66495#M40029</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/28693"&gt;@sonuchapter247&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you experiencing this issue in the sandbox or your live production account?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 03:00:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-issue-with-Discover-Card-Type-in-Payment-using-Customer/m-p/66495#M40029</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2019-02-22T03:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue with Discover Card Type in Payment using Customer Payment Profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-issue-with-Discover-Card-Type-in-Payment-using-Customer/m-p/66511#M40041</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/7546"&gt;@RichardH&lt;/a&gt;&amp;nbsp; This is same in both Sandbox and Production.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 10:16:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Getting-issue-with-Discover-Card-Type-in-Payment-using-Customer/m-p/66511#M40041</guid>
      <dc:creator>sonuchapter247</dc:creator>
      <dc:date>2019-02-23T10:16:53Z</dc:date>
    </item>
  </channel>
</rss>

