<?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 Recurring Billing subscriptions, transactions ? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Recurring-Billing-subscriptions-transactions/m-p/61274#M35751</link>
    <description>&lt;P&gt;I would like to know , how to get a subscription's completed / approved transactions details using an API call using subscription ID in request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also i would like to make fake/test transactions for a subscription and analyze the response for approved or rejected transactions for a specific subscription/recurring billing , is there a way using API call ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically , on my site , there are different packages to get access to different types of data. A user can subscribe to multiple packages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the process i do is, if the authorize.net's customer profile information for the user does not exist in our database , then i make an API call to create the Customer profile first ( with payment and address information included ) , then i store the " an_customer_profile_id ", " an_payment_profile_id " and " an_shipping_address_id " , in our database for this user. Then i use these id's , to create a subscription and store the "&lt;SPAN class="cm-variable-2"&gt;an_subscription_id&lt;/SPAN&gt;" in our database for that user. The recurring billing will occur after every 12 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now what i want is that, i want to give the user access to those subsription packages only , whose this year's payment is complete/approved, and same with next year, meaning if payment is cleared for that year then allow user to access data otherwise forbid him to access the package data on our site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me how should i go about doing this ? and how to get the completed/approved transactions for a subscription using an API call ? ( i am using the PHP library )&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jan 2018 09:06:54 GMT</pubDate>
    <dc:creator>angular013</dc:creator>
    <dc:date>2018-01-21T09:06:54Z</dc:date>
    <item>
      <title>Recurring Billing subscriptions, transactions ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Recurring-Billing-subscriptions-transactions/m-p/61274#M35751</link>
      <description>&lt;P&gt;I would like to know , how to get a subscription's completed / approved transactions details using an API call using subscription ID in request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also i would like to make fake/test transactions for a subscription and analyze the response for approved or rejected transactions for a specific subscription/recurring billing , is there a way using API call ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically , on my site , there are different packages to get access to different types of data. A user can subscribe to multiple packages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the process i do is, if the authorize.net's customer profile information for the user does not exist in our database , then i make an API call to create the Customer profile first ( with payment and address information included ) , then i store the " an_customer_profile_id ", " an_payment_profile_id " and " an_shipping_address_id " , in our database for this user. Then i use these id's , to create a subscription and store the "&lt;SPAN class="cm-variable-2"&gt;an_subscription_id&lt;/SPAN&gt;" in our database for that user. The recurring billing will occur after every 12 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now what i want is that, i want to give the user access to those subsription packages only , whose this year's payment is complete/approved, and same with next year, meaning if payment is cleared for that year then allow user to access data otherwise forbid him to access the package data on our site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me how should i go about doing this ? and how to get the completed/approved transactions for a subscription using an API call ? ( i am using the PHP library )&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 09:06:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Recurring-Billing-subscriptions-transactions/m-p/61274#M35751</guid>
      <dc:creator>angular013</dc:creator>
      <dc:date>2018-01-21T09:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Recurring Billing subscriptions, transactions ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Recurring-Billing-subscriptions-transactions/m-p/61276#M35752</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order the get the&amp;nbsp;details/list of transactions associated with a subscription you will need to call the &lt;A href="https://developer.authorize.net/api/reference/index.html#recurring-billing-get-subscription" target="_blank"&gt;ARBGetSubscription API&lt;/A&gt;&amp;nbsp;&amp;nbsp;with flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;includeTransactions&amp;gt;true&amp;lt;/includeTransactions&amp;gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This enhancement to the API is pretty new and we are in process of updating the the sdks, the php sdk&amp;nbsp;does not have&amp;nbsp;this change, we will soon be making the php-sdk release with these changes, meanwhile you can test this by making direct API calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, in order&amp;nbsp;&lt;SPAN&gt;to make fake/test ARB transactions you will need to&lt;A href="https://developer.authorize.net/hello_world/sandbox/" target="_blank"&gt;&amp;nbsp;get sandbox credentials&lt;/A&gt;&amp;nbsp;and try it, by creating an test subscription via&amp;nbsp;&lt;A href="https://sandbox.authorize.net/" target="_blank"&gt;Sandbox Merchant Interface&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/index.html#recurring-billing-create-a-subscription" target="_blank"&gt;APIs&lt;/A&gt;&amp;nbsp;using the&amp;nbsp;&lt;A href="https://developer.authorize.net/hello_world/testing_guide/" target="_blank"&gt;test cards.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You will need to wait till the date of the transaction mentioned in the subscription to get the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 19:53:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Recurring-Billing-subscriptions-transactions/m-p/61276#M35752</guid>
      <dc:creator>kikmak42</dc:creator>
      <dc:date>2018-01-21T19:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Recurring Billing subscriptions, transactions ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Recurring-Billing-subscriptions-transactions/m-p/61277#M35753</link>
      <description>&lt;P&gt;I tried the 'getSubscription' API using a custom CURL XML request with this set to true:&lt;/P&gt;&lt;PRE&gt;&amp;lt;includeTransactions&amp;gt;true&amp;lt;/includeTransactions&amp;gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;.I needed to make some test transactions , to test different responses and write code according to that , but you say that i have to wait till next transaction ? my suscription is after every 12 months , should i wait till next year ?&amp;nbsp; even if i made a minimum time subscription , that will be 7 days , so should i wait 7 days each !!?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example i needed to know whether there will be multiple 'arbTransaction' arrays for mulltiple transactions ? because i needed to loop over them but i do not know the structure of multiple transactions therefore i needed to make fake transactions for the subscription.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[arbTransactions] =&amp;gt; Array
                (
                    [arbTransaction] =&amp;gt; Array
                        (
                            [response] =&amp;gt; This transaction has been approved.
                            [submitTimeUTC] =&amp;gt; 2018-01-16T09:12:49.67
                            [payNum] =&amp;gt; 1
                            [attemptNum] =&amp;gt; 1
                        )

                )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also i wanted to confirm , i saw that , when the 1st transaction was not charged ,&amp;nbsp; the 'arbTransactions' field was not returned in response. but when the 1st transaction was occured only then it appeared in response,&amp;nbsp; so for multiple transactions, will the lastest transation will be the first in the array , followed by 2nd lastest transaction and so on ? and all the setteled transactions will return this response ?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;This transaction has been approved.&lt;/PRE&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;because i noticed that for a transaction where an error was caused , it returned the same success message , but there was no transaction id returned in the response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 21:58:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Recurring-Billing-subscriptions-transactions/m-p/61277#M35753</guid>
      <dc:creator>angular013</dc:creator>
      <dc:date>2018-01-21T21:58:48Z</dc:date>
    </item>
  </channel>
</rss>

