<?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: Use same transactionId to perform another CIM transaction in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37599#M20771</link>
    <description>&lt;P&gt;You can NOT reuse a transactionID.&lt;/P&gt;&lt;P&gt;You can NOT reuse a subscriptionID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just create your own unique id on your own database. Or create an unique id and use the invoice# or purchase order# on the create transaction. same as ARB there is a invoice# field that you can use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2013 13:31:20 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2013-12-19T13:31:20Z</dc:date>
    <item>
      <title>Use same transactionId to perform another CIM transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37581#M20763</link>
      <description>&lt;P&gt;I am using Authorize.net API to perform payment process.&lt;/P&gt;&lt;P&gt;I am able to perform successful payment and able to get transactionId of any user's transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Merchant merchant = callMyMerchancy();

// Transaction process started.
Transaction transactions = merchant.createCIMTransaction(TransactionType.CREATE_CUSTOMER_PROFILE_TRANSACTION);
String customerProfileId = Class2.getCutomerId();
String paymentId = Class1.getPayamentId();
transactions.setCustomerProfileId(customerProfileId);
transactions.setCustomerPaymentProfileId(paymentId);

PaymentTransaction paymentTransaction = PaymentTransaction.createPaymentTransaction();
Order order = Order.createOrder();
order.setTotalAmount(paymentAmount);
order.setDescription("Test payment");
paymentTransaction.setOrder(myOrder);
paymentTransaction.setTransactionType(net.authorize.TransactionType.AUTH_CAPTURE);
transaction.setPaymentTransaction(paymentTransaction);
Result&amp;lt;Transaction&amp;gt; response= (Result&amp;lt;Transaction&amp;gt;) merchant.postTransaction(transactions);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;if (response.isOk()) {
System.out.println(" I got transaction id as : "
+ response.getDirectResponseList().get(0).getDirectResponseMap().get(ResponseField.TRANSACTION_ID));&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this way I am keeping track of transactionId for users.&lt;/P&gt;&lt;P&gt;Now I want to perform another transaction in future, for which transactionId will be same(transaction id which we have stored at&lt;BR /&gt;first time).&lt;BR /&gt;&lt;BR /&gt;So anybody knows how to use same transactionId, and perform another transaction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am also processing ARB transaction process, where I am getting a new reference Id, in this case also I want to perform another ARB subscription with same referenceId.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	ServiceSoapProxy soapObject = new ServiceSoapProxy();

			
			try {
			
				soapObject.setEndpoint("&lt;A href="https://apitest.authorize.net/soap/v1/Service.asmx&amp;quot;);" target="_blank"&gt;https://apitest.authorize.net/soap/v1/Service.asmx");&lt;/A&gt;
				
				ANetApiResponseType a = soapObject.isAlive();

				ANetApiResponseType auth = soapObject
						.authenticateTest(merchantAuthentication);

				ARBCreateSubscriptionResponseType response = soapObject
						.ARBCreateSubscription(merchantAuthentication,
								subscription);
				logger.info("Subscription Id got as----"
						+ response.getSubscriptionId());
 
				} catch (RemoteException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Does anybody can help me out how we can use same reference Id and perform ARB transaction ?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 11:29:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37581#M20763</guid>
      <dc:creator>aryansds</dc:creator>
      <dc:date>2013-12-19T11:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use same transactionId to perform another CIM transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37585#M20765</link>
      <description>&lt;P&gt;Do you mean a void or credit transaction? set the refID with the original transactionID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you mean the subscription ID? they are unique to each subscription you created, so you can't use it again.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:25:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37585#M20765</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-12-19T12:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use same transactionId to perform another CIM transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37587#M20766</link>
      <description>&lt;P&gt;Thanks for quick reply. Yes I am using credit transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have tried to set refId as a transactionId, and tried to performed transaction as below, transaction worked successful,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but after that I just tried to get transactionId, but it's different. &amp;nbsp;Why is it so?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing any mistake over here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want both transaction should have same transactionId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Merchant merchant = callMyMerchancy();

// Transaction process started.
Transaction transactions = merchant.createCIMTransaction(TransactionType.CREATE_CUSTOMER_PROFILE_TRANSACTION);
String customerProfileId = Class2.getCutomerId();
String paymentId = Class1.getPayamentId();
transactions.setCustomerProfileId(customerProfileId);
transactions.setCustomerPaymentProfileId(paymentId);
transaction.setRefId("2203679642"); /******* set original transactionId as a refId*********/
PaymentTransaction paymentTransaction = PaymentTransaction.createPaymentTransaction();
Order order = Order.createOrder();
order.setTotalAmount(paymentAmount);
order.setDescription("Test payment");
paymentTransaction.setOrder(myOrder);
paymentTransaction.setTransactionType(net.authorize.TransactionType.AUTH_CAPTURE);
transaction.setPaymentTransaction(paymentTransaction);
Result&amp;lt;Transaction&amp;gt; response= (Result&amp;lt;Transaction&amp;gt;) merchant.postTransaction(transactions);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:48:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37587#M20766</guid>
      <dc:creator>aryansds</dc:creator>
      <dc:date>2013-12-19T12:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use same transactionId to perform another CIM transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37593#M20769</link>
      <description>&lt;P&gt;Because you can have mutliple credit on a single auth_capture transaction. example, charge $50, credit 1 for $10, credit 2 for $15.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 13:05:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37593#M20769</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-12-19T13:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Use same transactionId to perform another CIM transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37595#M20770</link>
      <description>&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;My scenario is : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;CIM transaction:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;1.First user will charged with normal CIM payament process, so we will get a transactionId which we will store in db.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;2. User will charged for his group blog creation.(So here I want to set transactionId same as stored transactionId)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;ARB Transaction:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;3.ARB subscription will get created for user(subscription Id will get stored).&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;4.ARB subcription will get created for user's Group blog (subscription Id for this transaction will be same as above subscriptionId)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;Is it possible to perform above scenario using authorize.net?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;So in my case user can use same credit card info or can use new credit card , then also I want to perform second transaction with same 'TransactionId' of first one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do that? I tried your way , tried to set &amp;nbsp;first transactionId as a refId and performed transaction, but got new transactionId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and also about ARB, is it really not possible to have 2 sbscriptions or a subscription with having sub-subscription with same subscriptionId?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 13:20:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37595#M20770</guid>
      <dc:creator>aryansds</dc:creator>
      <dc:date>2013-12-19T13:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use same transactionId to perform another CIM transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37599#M20771</link>
      <description>&lt;P&gt;You can NOT reuse a transactionID.&lt;/P&gt;&lt;P&gt;You can NOT reuse a subscriptionID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just create your own unique id on your own database. Or create an unique id and use the invoice# or purchase order# on the create transaction. same as ARB there is a invoice# field that you can use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 13:31:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Use-same-transactionId-to-perform-another-CIM-transaction/m-p/37599#M20771</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-12-19T13:31:20Z</dc:date>
    </item>
  </channel>
</rss>

