<?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: Get Accept Customer Profile Page cannot set hostedProfileCardCodeRequired value in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Get-Accept-Customer-Profile-Page-cannot-set/m-p/63589#M37668</link>
    <description>&lt;P&gt;I guess I found my own answer - instead of&amp;nbsp;passing the PHP true boolean I quoted the word as "true" and it passed.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$setting-&amp;gt;setSettingValue("true");&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Jul 2018 22:24:30 GMT</pubDate>
    <dc:creator>wdbaker54</dc:creator>
    <dc:date>2018-07-05T22:24:30Z</dc:date>
    <item>
      <title>Get Accept Customer Profile Page cannot set hostedProfileCardCodeRequired value</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Get-Accept-Customer-Profile-Page-cannot-set/m-p/63587#M37666</link>
      <description>&lt;P&gt;I am switching from Accept.js to Accept Customer to reduce&amp;nbsp;our SAQ requirements and one of the PHP functions I am borrowing is from&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sample-code-php/blob/master/CustomerProfiles/get-accept-customer-profile-page.php" target="_blank"&gt;getAcceptCustomerProfilePage()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I basically understand what it is doing but when I attempt to set the&amp;nbsp;hostedProfileCardCodeRequired to true it generates an an error:&lt;/P&gt;&lt;PRE&gt;Payment gateway response (E00013): Invalid Setting Value. hostedProfileCardCodeRequired must be true or false.&lt;/PRE&gt;&lt;P&gt;I modified the code slightly to use the&amp;nbsp;ArrayOfSettingType class and what I did was:&lt;/P&gt;&lt;PRE&gt;$alist = new AnetAPI\ArrayOfSettingType();

$setting = new AnetAPI\SettingType();
$setting-&amp;gt;setSettingName("hostedProfileCardCodeRequired");
$setting-&amp;gt;setSettingValue(true);
$alist-&amp;gt;addToSetting($setting);

...

$request-&amp;gt;setHostedProfileSettings($alist-&amp;gt;getSetting());&lt;/PRE&gt;&lt;P&gt;Whenever I remove the setting of&amp;nbsp;hostedProfileCardCodeRequired the code works. I am setting the value to boolean true. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 18:31:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Get-Accept-Customer-Profile-Page-cannot-set/m-p/63587#M37666</guid>
      <dc:creator>wdbaker54</dc:creator>
      <dc:date>2018-07-05T18:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get Accept Customer Profile Page cannot set hostedProfileCardCodeRequired value</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Get-Accept-Customer-Profile-Page-cannot-set/m-p/63589#M37668</link>
      <description>&lt;P&gt;I guess I found my own answer - instead of&amp;nbsp;passing the PHP true boolean I quoted the word as "true" and it passed.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$setting-&amp;gt;setSettingValue("true");&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jul 2018 22:24:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Get-Accept-Customer-Profile-Page-cannot-set/m-p/63589#M37668</guid>
      <dc:creator>wdbaker54</dc:creator>
      <dc:date>2018-07-05T22:24:30Z</dc:date>
    </item>
  </channel>
</rss>

