<?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: Accept Hosted: how to get Transaction Id when credit card payment was successfull ? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69702#M42680</link>
    <description>&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I think I found something, but would like to confirm:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(slightly different name): &lt;STRONG&gt;setRefTransId&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in java API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;// Create the payment transaction request&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;TransactionRequestType &lt;/SPAN&gt;&lt;SPAN&gt;txnRequest &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;TransactionRequestType&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;txnRequest&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setTransactionType&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TransactionTypeEnum&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;AUTH_CAPTURE_TRANSACTION&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;txnRequest&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setAmount&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;BigDecimal&lt;/SPAN&gt;&lt;SPAN&gt;(amount)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setScale&lt;/SPAN&gt;&lt;SPAN&gt;(2&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;RoundingMode&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;HALF_UP))&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;txnRequest&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setRefTransId&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"merchantRefId-that-willbe-passed-inwebhooks"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which, I presume, will correspond to the magical &lt;STRONG&gt;refId&lt;/STRONG&gt; in the REST API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="hljs-attr"&gt;"createTransactionRequest"&lt;/SPAN&gt;: {
        &lt;SPAN class="hljs-attr"&gt;"merchantAuthentication"&lt;/SPAN&gt;: {
            &lt;SPAN class="hljs-attr"&gt;"name"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"5KP3u95bQpv"&lt;/SPAN&gt;,
            &lt;SPAN class="hljs-attr"&gt;"transactionKey"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"346HZ32z3fP4hTG2"&lt;/SPAN&gt;
        },
        &lt;SPAN class="hljs-attr"&gt;"refId"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"123456"&lt;/SPAN&gt;,&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not see this parameter (refId or refTransId) in any of the examples for &lt;A href="https://developer.authorize.net/api/reference/#accept-suite-get-an-accept-payment-page" target="_self"&gt;Get Accept Payment Page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whic his why I would like to confirm if that's the right mechanims to pass refId into AuthorizeNet (so that it is that ID that will subsequently appear in the Webhook notifications as merchantRefId)&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 14 Nov 2019 19:21:52 GMT</pubDate>
    <dc:creator>erdz1</dc:creator>
    <dc:date>2019-11-14T19:21:52Z</dc:date>
    <item>
      <title>Accept Hosted: how to get Transaction Id when credit card payment was successfull ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69684#M42662</link>
      <description>&lt;P&gt;We are using Java SDK to leverage Accept Hosted integration method (without IFrames)&lt;/P&gt;&lt;P&gt;That means, user is presented with a separate (not embedded) AuthorizeNEt payment web page, and when payment is successfull, Authorize.NET will redirect users browser, back to our URL with a blob of data we instucted AZ to put into that URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So we get the redirection, we get our data blob.&lt;/P&gt;&lt;P&gt;But how do we know the transaction ID&amp;nbsp; (so that we can store it in our DB for audit/control needs) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was a similar question asked several years ago:&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;ScalaSansWeb&amp;quot;,sans-serif"&gt;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/Transaction-ID-from-getHostedPaymentPageRequest/m-p/64908/highlight/true#M38685" target="_blank" rel="noopener"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Transaction-ID-from-getHostedPaymentPageRequest/m-p/64908/highlight/true#M38685&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;ScalaSansWeb&amp;quot;,sans-serif"&gt;but no workable answers were provided, unfortunately.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;ScalaSansWeb&amp;quot;,sans-serif"&gt;---&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;ScalaSansWeb&amp;quot;,sans-serif"&gt;For a bit more background:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;ScalaSansWeb&amp;quot;,sans-serif"&gt;We use Accept hosted, rather than any 3rd party Java script libraries (like authorize.js)&amp;nbsp; -- because we are not allowed to load JS script from external sites.&amp;nbsp; So we essentially warn the user that they will be redirected to Authorize Net payment screen, and that will be outside of our privacy Perimiter&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;ScalaSansWeb&amp;quot;,sans-serif"&gt;(Authorize.NEt payment hosted page, not only hosts their own JS scripts, but it seems to have scripts from other domains as well )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 16:51:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69684#M42662</guid>
      <dc:creator>erdz1</dc:creator>
      <dc:date>2019-11-13T16:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted: how to get Transaction Id when credit card payment was successfull ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69697#M42675</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/33252"&gt;@erdz1&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;You use webhooks. This is a routine item for redirect method integrations and webhooks is the answer. FYI I also use webhooks in my iframe based integrations. They work extremely well.</description>
      <pubDate>Thu, 14 Nov 2019 15:16:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69697#M42675</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-11-14T15:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted: how to get Transaction Id when credit card payment was successfull ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69699#M42677</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/26959"&gt;@Renaissance&lt;/a&gt;&amp;nbsp; Thank you for the suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have looked into this, but I could not find a way to pass merchantReferenceId (or &lt;STRONG&gt;refId&lt;/STRONG&gt; )&lt;/P&gt;&lt;P&gt;into &lt;A href="https://developer.authorize.net/api/reference/features/accept_hosted.html" target="_self"&gt;AcceptHosted APIs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the &lt;A href="https://developer.authorize.net/api/reference/features/webhooks.html" target="_self"&gt;AZ's webhook docs&lt;/A&gt;, it is the merchantReferenceID that allows the link between our internal transaction id, and the subsequently published Authorize NET notification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What mechanism did you use to pass in that&amp;nbsp; refID ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the background, we use&lt;/P&gt;&lt;P&gt;AZ's Java SDK, and following this sample to create &lt;A href="https://github.com/AuthorizeNet/sample-code-java/blob/master/src/main/java/net/authorize/sample/AcceptSuite/GetAnAcceptPaymentPage.java" target="_self"&gt;Accept Payment&lt;/A&gt; page&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for the follow up&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 16:29:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69699#M42677</guid>
      <dc:creator>erdz1</dc:creator>
      <dc:date>2019-11-14T16:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted: how to get Transaction Id when credit card payment was successfull ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69702#M42680</link>
      <description>&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I think I found something, but would like to confirm:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(slightly different name): &lt;STRONG&gt;setRefTransId&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in java API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;// Create the payment transaction request&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;TransactionRequestType &lt;/SPAN&gt;&lt;SPAN&gt;txnRequest &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;TransactionRequestType&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;txnRequest&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setTransactionType&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TransactionTypeEnum&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;AUTH_CAPTURE_TRANSACTION&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;txnRequest&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setAmount&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;BigDecimal&lt;/SPAN&gt;&lt;SPAN&gt;(amount)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setScale&lt;/SPAN&gt;&lt;SPAN&gt;(2&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;RoundingMode&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;HALF_UP))&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;txnRequest&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setRefTransId&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"merchantRefId-that-willbe-passed-inwebhooks"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which, I presume, will correspond to the magical &lt;STRONG&gt;refId&lt;/STRONG&gt; in the REST API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="hljs-attr"&gt;"createTransactionRequest"&lt;/SPAN&gt;: {
        &lt;SPAN class="hljs-attr"&gt;"merchantAuthentication"&lt;/SPAN&gt;: {
            &lt;SPAN class="hljs-attr"&gt;"name"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"5KP3u95bQpv"&lt;/SPAN&gt;,
            &lt;SPAN class="hljs-attr"&gt;"transactionKey"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"346HZ32z3fP4hTG2"&lt;/SPAN&gt;
        },
        &lt;SPAN class="hljs-attr"&gt;"refId"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"123456"&lt;/SPAN&gt;,&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not see this parameter (refId or refTransId) in any of the examples for &lt;A href="https://developer.authorize.net/api/reference/#accept-suite-get-an-accept-payment-page" target="_self"&gt;Get Accept Payment Page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whic his why I would like to confirm if that's the right mechanims to pass refId into AuthorizeNet (so that it is that ID that will subsequently appear in the Webhook notifications as merchantRefId)&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Nov 2019 19:21:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69702#M42680</guid>
      <dc:creator>erdz1</dc:creator>
      <dc:date>2019-11-14T19:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted: how to get Transaction Id when credit card payment was successfull ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69704#M42682</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/33252"&gt;@erdz1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not think the refId is in webhooks yet. You pass an invoice number in the API call. Then when you receive the webhook, you extract the transId and run a&amp;nbsp;&lt;A title="getTransactionDetails method call" href="https://developer.authorize.net/api/reference/#transaction-reporting-get-transaction-details" target="_blank" rel="noopener"&gt;getTransactionDetails&lt;/A&gt;&amp;nbsp;method call to retrieve the invoice number. You can tie the invoice number back to your internal records.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 23:01:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69704#M42682</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-11-14T23:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted: how to get Transaction Id when credit card payment was successfull ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69718#M42690</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/33252"&gt;@erdz1&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;If this answers your question could you kindly mark this thread solved? If not let me know where you’re stuck and I’ll get you tomorrow morning at breakfast (or at today’s breakfast if you’re fast enough)</description>
      <pubDate>Sat, 16 Nov 2019 14:03:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69718#M42690</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-11-16T14:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted: how to get Transaction Id when credit card payment was successfull ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69737#M42708</link>
      <description>&lt;P&gt;Thank you for the follow up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have not implemented webhooks.&amp;nbsp; As that requires a chunk of work, where we have to add to our 'client code' of authorize net, a chunk of 'server code' to accept the webhooks replies to fully test if merchantRefId is populated (as per documentation)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested your suggestion that invoice ID that we can submit via Java-SDK API, will get passed into the authorize.net transaction record.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That works.&amp;nbsp; Thank you for that insight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot reconsile, however, our experience with Authorize.net documentation in regards to Reference Id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Their doc states:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Although most of the fields in an event notification's payload use standard Authorize.Net API fields, which are documented in our &lt;A href="https://developer.authorize.net/api/reference" target="_blank" rel="noopener"&gt;API Reference&lt;/A&gt;, three fields are unique to webhook payloads.&lt;/P&gt;&lt;P&gt;The merchantReferenceId field corresponds &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;to the refId field in the Authorize.Net API&lt;/STRONG&gt;&lt;/FONT&gt;, and enables you to match webhook notifications with API requests.&lt;/P&gt;&lt;P&gt;In addition, two fields in webhook notifications identify the type of payload and the identification number associated with the webhook event.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;ScalaSansWeb&amp;quot;,sans-serif"&gt;&lt;A href="https://developer.authorize.net/api/reference/features/webhooks.html" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/features/webhooks.html&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;ScalaSansWeb&amp;quot;,sans-serif"&gt;However there is no 'refId' method in the Java SDK Api.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="&amp;quot;ScalaSansWeb&amp;quot;,sans-serif"&gt;The closest one is &lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;txnRequest&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setRefTransId&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;And that does not appear to work at all (because, even without webhooks,&amp;nbsp; when we go to Sandbox transaction search UI, we cannot find anything by that Id).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will mark your answer as accepted, but we cannot use it at the moment (because we cannot use invoice id as charge reference id (our invoice id scheme is not unique across all transactions)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and Authorize.NET sdk capablities (at least Java-SDK)&amp;nbsp; appears to contradict the documentation about refId field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To even login in a deffect with Authorize.NET around this, we need to implement webhooks and provide complete end-to-end example (and that's taking some time)&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;&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>Mon, 18 Nov 2019 20:20:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69737#M42708</guid>
      <dc:creator>erdz1</dc:creator>
      <dc:date>2019-11-18T20:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted: how to get Transaction Id when credit card payment was successfull ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69739#M42710</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/33252"&gt;@erdz1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few things. 1. your conundrum with the merchant ref id is a long going on thing.&amp;nbsp; They tend not to get around to changing things all that fast. This issue has been a hang up for developers for over a year.&amp;nbsp; &amp;nbsp;In my case the invoice number solves the problem and it never has caused me any inconvenience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, the way I think about these API properties is how can I make them work, vs how auth.net intends for you to use them. I often disregard the field names and use the property for a totally different purpose. It is thinking along the lines of "I need to pass a 22 character string, which property that I don't already use can I do that with". It usually gets the job done. For you, I would suggest creating a column in your db records called "po_num" or "order_reference" or whatever you want. Generate a unique id for each order and store it in that column. Then pass it in the API call under poNumber. For generating unique Ids, I find that functions that output timestamps in microseconds are useful. If you have a busy enough application that there is a chance of collisions using this, you can append a random letter to front and/or back of the string you create from your timestamp.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 00:19:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69739#M42710</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-11-19T00:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted: how to get Transaction Id when credit card payment was successfull ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69740#M42711</link>
      <description>&lt;P&gt;Here is an actual payload from a real webhook, as opposed to what the docs say. Notice there is no merchant refId&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"notificationId":"f6ffd89e-7e5b-4ff4-b15e-39a68500ce70","eventType":"net.authorize.payment.authorization.created","eventDate":"2019-03-09T15:13:16.7573039Z","webhookId":"9ee234eb-e3b6-4139-b261-0ed4b9c14499","payload":{"responseCode":1,"authCode":"O4XCGB","avsResponse":"Y","authAmount":91.64,"entityName":"transaction","id":"xxxxxxxxxxxxxxx"}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I pointlessly blotted out the transId. This is a sandbox run.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 00:22:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69740#M42711</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-11-19T00:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted: how to get Transaction Id when credit card payment was successfull ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69758#M42723</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/26959"&gt;@Renaissance&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the example of the webhook notification.&lt;/P&gt;&lt;P&gt;yes, you are right,&amp;nbsp; it looks like the merchaintRefId mentioned in the AZ's doc is not even present.&lt;/P&gt;&lt;P&gt;-- we will figure out away to use AZ's Invoice ID field, instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 19:45:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-how-to-get-Transaction-Id-when-credit-card-payment/m-p/69758#M42723</guid>
      <dc:creator>erdz1</dc:creator>
      <dc:date>2019-11-20T19:45:18Z</dc:date>
    </item>
  </channel>
</rss>

