<?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: Webhook empty using Accepted Host method in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68394#M41620</link>
    <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31546"&gt;@a10ma4t5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like my advice worked for you. The answer to your question is to pass that as the invoice number in the API call and then retrieve it when you get the webhook. You also want to implement the hash verification piece once you get everything working.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 17:08:13 GMT</pubDate>
    <dc:creator>Renaissance</dc:creator>
    <dc:date>2019-07-12T17:08:13Z</dc:date>
    <item>
      <title>Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68372#M41599</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;&lt;A href="https://community.developer.authorize.net/t5/user/viewprofilepage/user-id/26959" target="_self"&gt;&lt;SPAN class="login-bold"&gt;We are using SIM right now and are in the middle of developing teh webhook using Accepted Host metho...&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class="login-bold"&gt;We use a live A.net account in "Live Mode"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="login-bold"&gt;The transactions are successfully recorded on the merchant A.net account&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="login-bold"&gt;But the webhook arrays are empty, nothing is relayed back to our website for recording and notifications.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;This is the endpoint listener script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;URL: &lt;A href="http://wwvr5.wwwebweavers.com/jomres/remote_plugins/jomres_gateway_authorize/notify.php" target="_blank"&gt;http://wwvr5.wwwebweavers.com/jomres/remote_plugins/jomres_gateway_authorize/notify.php&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;the endpoint script just does this:&lt;BR /&gt;$path=dirname(realpath(__FILE__));&lt;BR /&gt;$f=fopen($path.'/log.txt','a+');&lt;BR /&gt;fputs($f,print_r($_REQUEST,1));&lt;BR /&gt;fclose($f);&lt;BR /&gt;echo "OK";&lt;BR /&gt;die();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;it gets the post data from auth.net and writes it to a file named log.txt which is empty after successful transactions on A.net:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;A href="http://wwvr5.wwwebweavers.com/jomres/remote_plugins/jomres_gateway_authorize/log.txt" target="_blank"&gt;http://wwvr5.wwwebweavers.com/jomres/remote_plugins/jomres_gateway_authorize/log.txt&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;We program in php. Our website is on:&lt;A href="http://wwvr5.wwwebweavers.com/index.php?lang=en" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://wwvr5.wwwebweavers.com/index.php?lang=en&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:09:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68372#M41599</guid>
      <dc:creator>nanqiyou</dc:creator>
      <dc:date>2019-07-11T15:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68373#M41600</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31519"&gt;@nanqiyou&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;The payload comes in json format. I think using the $_REQUEST[] variable is not going to work. And you are merely dumping the content in a .txt file. That is a very limited use of what webhooks can do.</description>
      <pubDate>Thu, 11 Jul 2019 15:57:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68373#M41600</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-11T15:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68374#M41601</link>
      <description>&lt;P&gt;ts will also be written to the log file.&lt;/P&gt;&lt;P&gt;for me, neither sandbox or live account workingin live mode,will trigger the webhook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I have to do to get it to trigger!!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 16:18:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68374#M41601</guid>
      <dc:creator>a10ma4t5</dc:creator>
      <dc:date>2019-07-11T16:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68378#M41605</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31546"&gt;@a10ma4t5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run some test transactions. You'll get a webhook notification for all enrolled events.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 18:59:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68378#M41605</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-11T18:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68386#M41613</link>
      <description>&lt;P&gt;But this is the problem.&lt;/P&gt;&lt;P&gt;The webhook is not firing.&lt;/P&gt;&lt;P&gt;any hit to my webhook, will update the log file it creates.&lt;/P&gt;&lt;P&gt;The timestamp on the file doesn't even change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'll check it again.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 00:10:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68386#M41613</guid>
      <dc:creator>a10ma4t5</dc:creator>
      <dc:date>2019-07-12T00:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68387#M41614</link>
      <description>&lt;P&gt;test results.&lt;/P&gt;&lt;P&gt;Environment: Sandbox live mode.&lt;/P&gt;&lt;P&gt;Webhook Listener Contents:&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;$headers = getallheaders();&lt;BR /&gt;$payload = file_get_contents("php://input");&lt;/P&gt;&lt;P&gt;$path=dirname(realpath(__FILE__));&lt;BR /&gt;$f=fopen($path.'/notify.log','a+');&lt;BR /&gt;fputs($f,print_r($payload,1));&lt;BR /&gt;fputs($f,print_r("&amp;lt;br /&amp;gt;",1));&lt;BR /&gt;fclose($f);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;The webhook was NOT triggered.&lt;/P&gt;&lt;P&gt;Even if the info posted to me was empty, the log file would be created.&lt;/P&gt;&lt;P&gt;It was not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the exact same problem that I have in the live account.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 00:25:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68387#M41614</guid>
      <dc:creator>a10ma4t5</dc:creator>
      <dc:date>2019-07-12T00:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68393#M41619</link>
      <description>&lt;P&gt;finally got the webhook to post and captured.&lt;/P&gt;&lt;P&gt;last problem I hope,,....&lt;/P&gt;&lt;P&gt;how do I pass my sites orderID to the GetHostedPaymentPageRequest so that the webhook wil post it back to me?&lt;/P&gt;&lt;P&gt;if you can't post any custom field from the site back via the webhook, then there is no way to identify what order the webhook is for as the URL for the webhook is set in the merchant account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 13:16:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68393#M41619</guid>
      <dc:creator>a10ma4t5</dc:creator>
      <dc:date>2019-07-12T13:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68394#M41620</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31546"&gt;@a10ma4t5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like my advice worked for you. The answer to your question is to pass that as the invoice number in the API call and then retrieve it when you get the webhook. You also want to implement the hash verification piece once you get everything working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 17:08:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68394#M41620</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-12T17:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68397#M41623</link>
      <description>&lt;P&gt;invoice number is too short,so I have to store it in a dbase table and so on....&lt;/P&gt;&lt;P&gt;what a pain.&lt;/P&gt;&lt;P&gt;however, I've done that now. and I'm trying to do a details lookup and I'm getting this error now.&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();&lt;BR /&gt;$merchantAuthentication-&amp;gt;setName($settingArray['loginid']);&lt;BR /&gt;$merchantAuthentication-&amp;gt;setTransactionKey($settingArray['transactionid']);&lt;BR /&gt;&lt;BR /&gt;// Set the transaction's refId&lt;BR /&gt;// The refId is a Merchant-assigned reference ID for the request.&lt;BR /&gt;// If included in the request, this value is included in the response.&lt;BR /&gt;// This feature might be especially useful for multi-threaded applications.&lt;BR /&gt;$refId = 'ref' . time();&lt;/P&gt;&lt;P&gt;$request = new AnetAPI\GetTransactionDetailsRequest();&lt;BR /&gt;$request-&amp;gt;setMerchantAuthentication($merchantAuthentication);&lt;BR /&gt;$request-&amp;gt;setTransId($transactionId);&lt;/P&gt;&lt;P&gt;$controller = new AnetController\GetTransactionDetailsController($request);&lt;/P&gt;&lt;P&gt;$response = $controller-&amp;gt;executeWithApiResponse( \net\authorize\api\constants\ANetEnvironment::SANDBOX);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the error:&lt;/P&gt;&lt;P&gt;net\authorize\api\contract\v1\GetTransactionDetailsResponse Object&lt;BR /&gt;(&lt;BR /&gt;[transaction:net\authorize\api\contract\v1\GetTransactionDetailsResponse:private] =&amp;gt;&lt;BR /&gt;[clientId:net\authorize\api\contract\v1\GetTransactionDetailsResponse:private] =&amp;gt;&lt;BR /&gt;[transrefId:net\authorize\api\contract\v1\GetTransactionDetailsResponse:private] =&amp;gt;&lt;BR /&gt;[refId:net\authorize\api\contract\v1\ANetApiResponseType:private] =&amp;gt;&lt;BR /&gt;[messages:net\authorize\api\contract\v1\ANetApiResponseType:private] =&amp;gt; net\authorize\api\contract\v1\MessagesType Object&lt;BR /&gt;(&lt;BR /&gt;[resultCode:net\authorize\api\contract\v1\MessagesType:private] =&amp;gt; Error&lt;BR /&gt;[message:net\authorize\api\contract\v1\MessagesType:private] =&amp;gt; Array&lt;BR /&gt;(&lt;BR /&gt;[0] =&amp;gt; net\authorize\api\contract\v1\MessagesType\MessageAType Object&lt;BR /&gt;(&lt;BR /&gt;[code:net\authorize\api\contract\v1\MessagesType\MessageAType:private] =&amp;gt; E00003&lt;BR /&gt;[text:net\authorize\api\contract\v1\MessagesType\MessageAType:private] =&amp;gt; The element 'getTransactionDetailsRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'clientId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'merchantAuthentication' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;[sessionToken:net\authorize\api\contract\v1\ANetApiResponseType:private] =&amp;gt;&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 19:08:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68397#M41623</guid>
      <dc:creator>a10ma4t5</dc:creator>
      <dc:date>2019-07-12T19:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68398#M41624</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31546"&gt;@a10ma4t5&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is too much to answer here. Sending you an IM.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 19:33:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68398#M41624</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-12T19:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68404#M41628</link>
      <description>&lt;P&gt;I copied the code from here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/#transaction-reporting-get-transaction-details" target="_blank"&gt;https://developer.authorize.net/api/reference/#transaction-reporting-get-transaction-details&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it gives this error.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 05:52:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68404#M41628</guid>
      <dc:creator>a10ma4t5</dc:creator>
      <dc:date>2019-07-13T05:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68405#M41629</link>
      <description>&lt;P&gt;If I remove the clientId then nothing else works.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 07:17:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68405#M41629</guid>
      <dc:creator>a10ma4t5</dc:creator>
      <dc:date>2019-07-13T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68446#M41648</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31546"&gt;@a10ma4t5&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;I am probably missing it but where in your code is the clientId? If that property exists you can use it, you just have to put it on the correct node.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For other users who may follow this, I have sent information and had discussions with the members on this thread through IM. The advice I gave for webhooks was to not use $_POST but use php input instead, and to also capture the request headers. That is the short version. It tends to work</description>
      <pubDate>Tue, 16 Jul 2019 00:15:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68446#M41648</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-16T00:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook empty using Accepted Host method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68449#M41650</link>
      <description>&lt;P&gt;I am now capturing the headers.&lt;/P&gt;&lt;P&gt;Extracting the transaction number and trying to do a details lookup to get the invoiceID that I sent when I created the web order.&lt;/P&gt;&lt;P&gt;With that invoice ID, I can complete the order.&lt;/P&gt;&lt;P&gt;however, when I get the transaction ID and do a transaction details lookup, it gives me this error.&lt;/P&gt;&lt;P&gt;Nowhere in my code am I using the clientId&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:24:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-empty-using-Accepted-Host-method/m-p/68449#M41650</guid>
      <dc:creator>a10ma4t5</dc:creator>
      <dc:date>2019-07-16T14:24:12Z</dc:date>
    </item>
  </channel>
</rss>

