<?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: Charge card, create profile, create subscription PHP in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-card-create-profile-create-subscription-PHP/m-p/63378#M37516</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/13289"&gt;@deevoo&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;getCustomerProfileId&lt;/LI&gt;&lt;LI&gt;getCustomerPaymentProfileIdList&lt;/LI&gt;&lt;LI&gt;getCustomerShippingAddressIdList&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;are functions,&lt;/P&gt;&lt;P&gt;hence you need to call as functions like this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$profileID=$presponse-&amp;gt;getCustomerProfileId();
$paymentID=$presponse-&amp;gt;getCustomerPaymentProfileIdList()[0];
$addressID=$presponse-&amp;gt;getCustomerShippingAddressIdList()[0];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 03:34:31 GMT</pubDate>
    <dc:creator>kikmak42</dc:creator>
    <dc:date>2018-06-13T03:34:31Z</dc:date>
    <item>
      <title>Charge card, create profile, create subscription PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-card-create-profile-create-subscription-PHP/m-p/63375#M37513</link>
      <description>&lt;P&gt;I've been trying to move our charges over to the API in php.&lt;/P&gt;&lt;P&gt;I have charge a card and create profile working but cannot get create a subscription to work.&lt;/P&gt;&lt;P&gt;I am trying to do this all on the same page.&lt;/P&gt;&lt;P&gt;I am trying to grab the profile ID, payment ID, and address ID for the subscription.&lt;/P&gt;&lt;P&gt;When i put the function in for ARB I get errors on the "use net\authorize\api\contract\v1 as AnetAPI;" - most likely since it was used previously. So I commented those two lines out and nothing happened. Not even an error.&lt;/P&gt;&lt;P&gt;Is it even possible to do these all on one page?&lt;/P&gt;&lt;P&gt;After the charge and create profile, I use these:&lt;/P&gt;&lt;PRE&gt;$transid=$tresponse-&amp;gt;getTransId();
$profileID=$presponse-&amp;gt;getCustomerProfileId;
$paymentID=$presponse-&amp;gt;getCustomerPaymentProfileIdList[0];
$addressID=$presponse-&amp;gt;getCustomerShippingAddressIdList[0];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is this incorrect? I could not find anything about doing it this way.&lt;/P&gt;&lt;P&gt;Any other suggestions if I can't?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 20:31:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-card-create-profile-create-subscription-PHP/m-p/63375#M37513</guid>
      <dc:creator>deevoo</dc:creator>
      <dc:date>2018-06-12T20:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Charge card, create profile, create subscription PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-card-create-profile-create-subscription-PHP/m-p/63378#M37516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/13289"&gt;@deevoo&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;getCustomerProfileId&lt;/LI&gt;&lt;LI&gt;getCustomerPaymentProfileIdList&lt;/LI&gt;&lt;LI&gt;getCustomerShippingAddressIdList&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;are functions,&lt;/P&gt;&lt;P&gt;hence you need to call as functions like this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$profileID=$presponse-&amp;gt;getCustomerProfileId();
$paymentID=$presponse-&amp;gt;getCustomerPaymentProfileIdList()[0];
$addressID=$presponse-&amp;gt;getCustomerShippingAddressIdList()[0];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 03:34:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-card-create-profile-create-subscription-PHP/m-p/63378#M37516</guid>
      <dc:creator>kikmak42</dc:creator>
      <dc:date>2018-06-13T03:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Charge card, create profile, create subscription PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-card-create-profile-create-subscription-PHP/m-p/63384#M37521</link>
      <description>&lt;P&gt;This helped as far as getting the variables so I can store them but I ended up having to make another page to make the subscription after. I just couldn't get it to work with both processes on the same page for some reason.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 21:17:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Charge-card-create-profile-create-subscription-PHP/m-p/63384#M37521</guid>
      <dc:creator>deevoo</dc:creator>
      <dc:date>2018-06-13T21:17:00Z</dc:date>
    </item>
  </channel>
</rss>

