<?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: Call to undefined method net\authorize\api\contract\v1\CreateTransactionResponse::getSubscriptio in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Call-to-undefined-method-net-authorize-api-contract-v1/m-p/58628#M33249</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks! That solved my issue. I will do more testing but I get a valid reference ID. I must've copy-pasted that part from the transaction snippet supplied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again! :)&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2017 06:16:29 GMT</pubDate>
    <dc:creator>1nt3r4ct</dc:creator>
    <dc:date>2017-06-29T06:16:29Z</dc:date>
    <item>
      <title>Call to undefined method net\authorize\api\contract\v1\CreateTransactionResponse::getSubscriptionId</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Call-to-undefined-method-net-authorize-api-contract-v1/m-p/58617#M33238</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am new to authorize and ran into a problem, namely using your sample-code (&lt;A href="https://github.com/AuthorizeNet/sample-code-php/blob/master/RecurringBilling/create-subscription.php" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php/blob/master/RecurringBilling/create-subscription.php&lt;/A&gt;), I can't seem to retrieve (and to print it to the landing page) the subscription ID (I receive a fatal error with the content pasted in the subject of this topic). The error message, which relates to an unknown method refers to this part of the code:&lt;BR /&gt;&lt;BR /&gt;echo "SUCCESS: Subscription ID : " . $response-&amp;gt;getSubscriptionId() . "\n";&lt;BR /&gt;&lt;BR /&gt;Please help me out. I also tried updating the package dependencies using composer, but to no avail. This is what I get after an attempted subscription (printed from the $response variable):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;net\authorize\api\contract\v1\CreateTransactionResponse Object
(
[transactionResponse:net\authorize\api\contract\v1\CreateTransactionResponse:private] =&amp;gt;
[profileResponse:net\authorize\api\contract\v1\CreateTransactionResponse:private] =&amp;gt;
[refId:net\authorize\api\contract\v1\ANetApiResponseType:private] =&amp;gt; ref1498478222
[messages:net\authorize\api\contract\v1\ANetApiResponseType:private] =&amp;gt; net\authorize\api\contract\v1\MessagesType Object
(
[resultCode:net\authorize\api\contract\v1\MessagesType:private] =&amp;gt; Ok
[message:net\authorize\api\contract\v1\MessagesType:private] =&amp;gt; Array
(
[0] =&amp;gt; net\authorize\api\contract\v1\MessagesType\MessageAType Object
(
[code:net\authorize\api\contract\v1\MessagesType\MessageAType:private] =&amp;gt; I00001
[text:net\authorize\api\contract\v1\MessagesType\MessageAType:private] =&amp;gt; Successful.
)

)

)

[sessionToken:net\authorize\api\contract\v1\ANetApiResponseType:private] =&amp;gt;
)&lt;/PRE&gt;&lt;P&gt;Interesting though is that these subscriptions do get created (I can see them in my sandbox account), and the system charges these payments as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 07:50:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Call-to-undefined-method-net-authorize-api-contract-v1/m-p/58617#M33238</guid>
      <dc:creator>1nt3r4ct</dc:creator>
      <dc:date>2017-06-28T07:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Call to undefined method net\authorize\api\contract\v1\CreateTransactionResponse::getSubscriptio</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Call-to-undefined-method-net-authorize-api-contract-v1/m-p/58622#M33243</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21945"&gt;@1nt3r4ct&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a weird one. Let's start with the basics. Does the sample code &lt;EM&gt;as retrieved from GitHub&lt;/EM&gt; run from the command line? (like so:)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;php RecurringBilling/create-subscription.php&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If yes, then the followup is: In whatever's failing, what modifications have you made to the sample code? Can you post the code you're using here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your &lt;EM&gt;$response&lt;/EM&gt; should be of the type &lt;EM&gt;ARBCreateSubscriptionResponse&lt;/EM&gt;, and it's not, so to me it looks like you're setting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$response = new AnetController\CreateTransactionController($request);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;somewhere instead of&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$response = new AnetController\ARBCreateSubscriptionController($request);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 18:37:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Call-to-undefined-method-net-authorize-api-contract-v1/m-p/58622#M33243</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-06-28T18:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Call to undefined method net\authorize\api\contract\v1\CreateTransactionResponse::getSubscriptio</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Call-to-undefined-method-net-authorize-api-contract-v1/m-p/58628#M33249</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks! That solved my issue. I will do more testing but I get a valid reference ID. I must've copy-pasted that part from the transaction snippet supplied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again! :)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 06:16:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Call-to-undefined-method-net-authorize-api-contract-v1/m-p/58628#M33249</guid>
      <dc:creator>1nt3r4ct</dc:creator>
      <dc:date>2017-06-29T06:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Call to undefined method net\authorize\api\contract\v1\CreateTransactionResponse::getSubscriptio</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Call-to-undefined-method-net-authorize-api-contract-v1/m-p/88741#M55919</link>
      <description>&lt;P&gt;Hi! I'm facing the same issue , i literally copy and paste the sample changin the credencials only and i can not get acccess to the method getSubscriptionId(),&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$response = new AnetController\CreateTransactionController($request);&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;if i create an instance of &lt;EM&gt;ARBCreateSubscriptionResponse&lt;/EM&gt; it has the method . but the result of this line has&amp;nbsp; not ,&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 04:54:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Call-to-undefined-method-net-authorize-api-contract-v1/m-p/88741#M55919</guid>
      <dc:creator>PibaSoft2023</dc:creator>
      <dc:date>2024-02-03T04:54:12Z</dc:date>
    </item>
  </channel>
</rss>

