<?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: How to set createProfile using PHP API in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-createProfile-using-PHP-API/m-p/54937#M29889</link>
    <description>&lt;P&gt;I'm not sure in your code sample here exactly what $this is referring to. In our sample code, we generally have a transactionRequestType object that is simply named $transactionRequestType. In order to add the flag to create a profile to one of our samples, you would need to add this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$profile = new AnetAPI\CustomerProfilePaymentType();
$profile-&amp;gt;setCreateProfile(true); 
$transactionRequestType-&amp;gt;setProfile($profile);&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:11:34 GMT</pubDate>
    <dc:creator>Trevor</dc:creator>
    <dc:date>2016-06-15T19:11:34Z</dc:date>
    <item>
      <title>How to set createProfile using PHP API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-createProfile-using-PHP-API/m-p/54936#M29888</link>
      <description>&lt;P&gt;Most of my questions have been answered but I can't seem to get this to work.&lt;/P&gt;&lt;P&gt;I can run a successful transaction and add customer billing info, but I can't get it to create a profile for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a previous post I was told to set createProfile=true. I am trying to do that like so:&lt;/P&gt;&lt;P&gt;$this-&amp;gt;custpaymentprofile = new AnetAPI\CustomerProfilePaymentType();&lt;BR /&gt;$this-&amp;gt;custpaymentprofile-&amp;gt;setCreateProfile(true);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I send custpaymentprofile to the transaction?&lt;/P&gt;&lt;P&gt;Example: $this-&amp;gt;transactionRequestType-&amp;gt;setBillTo($this-&amp;gt;billto);&lt;/P&gt;&lt;P&gt;&amp;nbsp;How do I send the createProfile info?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- D&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:17:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-createProfile-using-PHP-API/m-p/54936#M29888</guid>
      <dc:creator>fifty-git</dc:creator>
      <dc:date>2016-06-15T17:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to set createProfile using PHP API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-createProfile-using-PHP-API/m-p/54937#M29889</link>
      <description>&lt;P&gt;I'm not sure in your code sample here exactly what $this is referring to. In our sample code, we generally have a transactionRequestType object that is simply named $transactionRequestType. In order to add the flag to create a profile to one of our samples, you would need to add this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$profile = new AnetAPI\CustomerProfilePaymentType();
$profile-&amp;gt;setCreateProfile(true); 
$transactionRequestType-&amp;gt;setProfile($profile);&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:11:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-createProfile-using-PHP-API/m-p/54937#M29889</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2016-06-15T19:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to set createProfile using PHP API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-createProfile-using-PHP-API/m-p/54939#M29891</link>
      <description>&lt;P&gt;Thanks, this is what I was looking for:&lt;/P&gt;&lt;PRE&gt;$transactionRequestType-&amp;gt;setProfile($profile)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- D&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:07:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-createProfile-using-PHP-API/m-p/54939#M29891</guid>
      <dc:creator>fifty-git</dc:creator>
      <dc:date>2016-06-15T20:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set createProfile using PHP API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-createProfile-using-PHP-API/m-p/68237#M41482</link>
      <description>&lt;P&gt;Hi, I've an implementation for PHP, for some reason when trying to instantiate a new class of&amp;nbsp;CustomerProfilePaymentType it's throwing a class not found exception, can you please give me some advice? I've checked and everything seems to be fine there: sdk-php/lib/net/authorize/api/contract/v1/&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 17:04:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-set-createProfile-using-PHP-API/m-p/68237#M41482</guid>
      <dc:creator>danniel4493</dc:creator>
      <dc:date>2019-07-01T17:04:49Z</dc:date>
    </item>
  </channel>
</rss>

