<?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 Adding new Recurring Billing Transaction with same user in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-new-Recurring-Billing-Transaction-with-same-user/m-p/61469#M35913</link>
    <description>&lt;P&gt;I'm currently trying to implement ARB. I have the regular work flow working for when a user decides to just do one subscription.&lt;BR /&gt;The workflow is:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;GetHostedPaymentPage to complete the initial transaction&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;CreateCustomerProfileFromTransaction after the payment from the hosted page returns&lt;BR /&gt;&amp;nbsp; &amp;nbsp;ARBCreateSubscriptionRequest from the newly created profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now this workflow works, but lets say the user decides to upgrade their subscription. How would this then work?&lt;BR /&gt;&lt;BR /&gt;Once the GetHostedPaymentPge for the new subscription finishes, I'd need to check if that singe transactions is still the same one as the original payment profile or if its a new payment method&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - which API would I need to use to be able to do this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Case1: I find out that its a new payment. I would have to then create a new payment profile right? Then i'd have to either create a new sub and unsub the original. Or update the existing sub.&lt;BR /&gt;&amp;nbsp; &amp;nbsp;- which APIs would I need for this?&lt;BR /&gt;&lt;BR /&gt;case2: I found out that its an existing payment. Do i just update the existing sub? Would I need to get the paymentProfileId some how?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - which APIs would I need for this?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 05:28:02 GMT</pubDate>
    <dc:creator>drewdrew</dc:creator>
    <dc:date>2018-02-02T05:28:02Z</dc:date>
    <item>
      <title>Adding new Recurring Billing Transaction with same user</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-new-Recurring-Billing-Transaction-with-same-user/m-p/61469#M35913</link>
      <description>&lt;P&gt;I'm currently trying to implement ARB. I have the regular work flow working for when a user decides to just do one subscription.&lt;BR /&gt;The workflow is:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;GetHostedPaymentPage to complete the initial transaction&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;CreateCustomerProfileFromTransaction after the payment from the hosted page returns&lt;BR /&gt;&amp;nbsp; &amp;nbsp;ARBCreateSubscriptionRequest from the newly created profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now this workflow works, but lets say the user decides to upgrade their subscription. How would this then work?&lt;BR /&gt;&lt;BR /&gt;Once the GetHostedPaymentPge for the new subscription finishes, I'd need to check if that singe transactions is still the same one as the original payment profile or if its a new payment method&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - which API would I need to use to be able to do this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Case1: I find out that its a new payment. I would have to then create a new payment profile right? Then i'd have to either create a new sub and unsub the original. Or update the existing sub.&lt;BR /&gt;&amp;nbsp; &amp;nbsp;- which APIs would I need for this?&lt;BR /&gt;&lt;BR /&gt;case2: I found out that its an existing payment. Do i just update the existing sub? Would I need to get the paymentProfileId some how?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - which APIs would I need for this?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 05:28:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-new-Recurring-Billing-Transaction-with-same-user/m-p/61469#M35913</guid>
      <dc:creator>drewdrew</dc:creator>
      <dc:date>2018-02-02T05:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new Recurring Billing Transaction with same user</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-new-Recurring-Billing-Transaction-with-same-user/m-p/61500#M35937</link>
      <description>&lt;P&gt;You can use the ARBUpdateSubscriptionRequest (&lt;A href="https://developer.authorize.net/api/reference/index.html#recurring-billing-update-a-subscription" target="_self"&gt;https://developer.authorize.net/api/reference/index.html#recurring-billing-update-a-subscription&lt;/A&gt;) API for updating an existing&amp;nbsp;subscription. This API&amp;nbsp;can accept either&amp;nbsp;payment information&amp;nbsp;or the profile information like the ARBCreateSubscriptionRequest API to update a subscription. A sample ARBUpdateSubscriptionRequest with profile information is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;ARBUpdateSubscriptionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
	&amp;lt;merchantAuthentication&amp;gt;
		&amp;lt;name&amp;gt;**********&amp;lt;/name&amp;gt;
		&amp;lt;transactionKey&amp;gt;*********&amp;lt;/transactionKey&amp;gt;
	&amp;lt;/merchantAuthentication&amp;gt;
	&amp;lt;refId&amp;gt;123456&amp;lt;/refId&amp;gt;
	&amp;lt;subscriptionId&amp;gt;4745025&amp;lt;/subscriptionId&amp;gt;
	&amp;lt;subscription&amp;gt;
        &amp;lt;profile&amp;gt;
          &amp;lt;customerProfileId&amp;gt;1812875413&amp;lt;/customerProfileId&amp;gt;
          &amp;lt;customerPaymentProfileId&amp;gt;1809046411&amp;lt;/customerPaymentProfileId&amp;gt;
        &amp;lt;/profile&amp;gt;
	&amp;lt;/subscription&amp;gt;
&amp;lt;/ARBUpdateSubscriptionRequest&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you pass payment information(credit card or bank account details)&amp;nbsp;both ARBUpdateSubscriptionRequest and ARBCreateSubscriptionRequest&amp;nbsp;creates payment profiles for you by default( Links the subscription to an existing payment profile incase it is already present).&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 07:10:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-new-Recurring-Billing-Transaction-with-same-user/m-p/61500#M35937</guid>
      <dc:creator>rahulr</dc:creator>
      <dc:date>2018-02-05T07:10:23Z</dc:date>
    </item>
  </channel>
</rss>

