<?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: One-time Charge and Creating Subscription simultaneously in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/One-time-Charge-and-Creating-Subscription-simultaneously/m-p/56654#M31433</link>
    <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/7546"&gt;@RichardH&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/5908"&gt;@Joy&lt;/a&gt;&amp;nbsp;Thank you for your responses. I am reviewing the customer profiles description now, and will evaluate if that route serves our purposes.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2017 04:32:26 GMT</pubDate>
    <dc:creator>BC2016Genomics</dc:creator>
    <dc:date>2017-01-13T04:32:26Z</dc:date>
    <item>
      <title>One-time Charge and Creating Subscription simultaneously</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/One-time-Charge-and-Creating-Subscription-simultaneously/m-p/56649#M31428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a storefront with both one-time and subscription products, and would like to know best practices for charging both at once.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 separate functions:&lt;/P&gt;&lt;P&gt;- Charging the card through &lt;EM&gt;createTransactionRequest.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;- Creating a subscription through&amp;nbsp;&lt;EM&gt;ARBCreateSubscriptionRequest.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My checkout page has a form for customer data and CC information. On submit:&lt;/P&gt;&lt;P&gt;- POSTS the information back to itself&lt;/P&gt;&lt;P&gt;- stores it in a SESSION array&lt;/P&gt;&lt;P&gt;- runs either or both functions, depending on what they ordered. If no error codes show up, it goes to a confirmation page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further reading indicates that for a more robust system, the Authorize and Capture for a CC charge should be split into separate actions, with the Capture being run only after the Authorize clears. &amp;nbsp;Also, I am unsure of how to integrate such a separation with the SubscriptionRequest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I implement seperating the authorize and capture actions, would I be better served by the following pseudocode?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run authorize&lt;BR /&gt;if authorize ==success&lt;BR /&gt;&amp;nbsp; &amp;nbsp;run capture&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if capture == fail&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; display error type, prompt for correction&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; prompt to run capture only again&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;run subscription&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if subscription == fail&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; display error type, prompt for correction&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; prompt to run subscription only again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if authorize == fail&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; display error, prompt for correction and to run again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for corrections and advice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:01:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/One-time-Charge-and-Creating-Subscription-simultaneously/m-p/56649#M31428</guid>
      <dc:creator>BC2016Genomics</dc:creator>
      <dc:date>2017-01-12T21:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: One-time Charge and Creating Subscription simultaneously</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/One-time-Charge-and-Creating-Subscription-simultaneously/m-p/56652#M31431</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21096"&gt;@BC2016Genomics&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One option is to set the createProfile flag for the intial transaction. &amp;nbsp;If it is successful, the response will include a customer profile which you can to create a subscription.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the initial transaction is unsuccessful, no profile is created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 23:13:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/One-time-Charge-and-Creating-Subscription-simultaneously/m-p/56652#M31431</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-01-12T23:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: One-time Charge and Creating Subscription simultaneously</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/One-time-Charge-and-Creating-Subscription-simultaneously/m-p/56653#M31432</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_2" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21096" target="_self"&gt;BC2016Genomics&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Are you expecting to have recurring customers for one-time payments? If this is the case I suggest that you consider running everything throug Customer Profiles, please check:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="http://developer.authorize.net/api/reference/features/customer_profiles.html" target="_blank"&gt;http://developer.authorize.net/api/reference/features/customer_profiles.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Joy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 23:45:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/One-time-Charge-and-Creating-Subscription-simultaneously/m-p/56653#M31432</guid>
      <dc:creator>Joy</dc:creator>
      <dc:date>2017-01-12T23:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: One-time Charge and Creating Subscription simultaneously</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/One-time-Charge-and-Creating-Subscription-simultaneously/m-p/56654#M31433</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/7546"&gt;@RichardH&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/5908"&gt;@Joy&lt;/a&gt;&amp;nbsp;Thank you for your responses. I am reviewing the customer profiles description now, and will evaluate if that route serves our purposes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 04:32:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/One-time-Charge-and-Creating-Subscription-simultaneously/m-p/56654#M31433</guid>
      <dc:creator>BC2016Genomics</dc:creator>
      <dc:date>2017-01-13T04:32:26Z</dc:date>
    </item>
  </channel>
</rss>

