<?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 sandbox webhook issues in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68263#M41506</link>
    <description>&lt;P&gt;I have several custom wordpress endpoints&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://devjesse.gettveverywhere.com/wp-json/authorizenet/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://devjesse.gettveverywhere.com/wp-json/authorizenet/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, if i setup an inactive webhook on authorizenet and use the online test webhook button i receive the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;The ping operation failed. This could be due to connectivity issues, invalid url or server downtime. Check the url details for the webhook and try again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using a php curl script i can get the current webhooks:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[
  {
    "_links": {
      "self": {
        "href": "/rest/v1/webhooks/b8f7a92b-3d14-45d0-897f-95271faaf44b"
      }
    },
    "webhookId": "b8f7a92b-3d14-45d0-897f-95271faaf44b",
    "name": "dev_sub",
    "status": "inactive",
    "url": "https://devjesse.gettveverywhere.com/wp-json/authorizenet/subscription",
    "eventTypes": [
      "net.authorize.customer.subscription.updated",
      "net.authorize.customer.subscription.created",
      "net.authorize.customer.subscription.expiring",
      "net.authorize.customer.subscription.suspended",
      "net.authorize.customer.subscription.cancelled",
      "net.authorize.customer.subscription.terminated"
    ]
  }
]&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;and when calling the ping with my php curl script:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://apitest.authorize.net/rest/v1/webhooks/b8f7a92b-3d14-45d0-897f-95271faaf44b/pings');
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Authorization: Basic ' . base64_encode(API_LOGIN_ID . ':' . TRANSACTION_KEY),
    'Content-Type: application/json'
));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, '');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

echo $response;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;i receive the following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{
  "status": 500,
  "reason": "PING_FAILED",
  "message": "The ping operation failed. This could be due to connectivity issues, invalid url or server downtime. Check the url details for the webhook and try again.",
  "correlationId": "5003a88f-4a1f-4c77-b374-84bdc1256082"
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I am unsure why authorizenet webhook is failing here. The endpoint works if i use my own php curl script with a copy of the notification info:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'http://devjesse.gettveverywhere.com/wp-json/authorizenet/customer');
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json',
    'Content-Length: 410',
    'X-Opnet-Transaction-Trace: 676a6e12-d5d2-4f72-b14f-fac44a714d87-15432-570877 Expect 100-continue',
    'X-Anet-Signature: sha512=5860384727AC755D0AAFB387EB775F1436C409E2F2BF38C6ED08717399A23FB1275A2363DC16A35A89E5541DBB3CED599A515A2165AA02EFB54596BD920ECA93'
));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"notificationId":"365a8c21-088e-4303-a11a-6d3d827cc9a4","eventType":"net.authorize.customer.created","eventDate":"2019-07-02T16:27:41.5972635Z","webhookId":"5be521cb-5805-4b25-9952-1fb661c70e71","payload":{"paymentProfiles":[{"customerType":"individual","id":"1507794447"}],"merchantCustomerId":"2200","description":"Profile created by Subscription: 5869582","entityName":"customerProfile","id":"1508341513"}}');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

echo $response;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 14:49:32 GMT</pubDate>
    <dc:creator>jessequinn2019</dc:creator>
    <dc:date>2019-07-03T14:49:32Z</dc:date>
    <item>
      <title>sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68263#M41506</link>
      <description>&lt;P&gt;I have several custom wordpress endpoints&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://devjesse.gettveverywhere.com/wp-json/authorizenet/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://devjesse.gettveverywhere.com/wp-json/authorizenet/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, if i setup an inactive webhook on authorizenet and use the online test webhook button i receive the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;The ping operation failed. This could be due to connectivity issues, invalid url or server downtime. Check the url details for the webhook and try again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using a php curl script i can get the current webhooks:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[
  {
    "_links": {
      "self": {
        "href": "/rest/v1/webhooks/b8f7a92b-3d14-45d0-897f-95271faaf44b"
      }
    },
    "webhookId": "b8f7a92b-3d14-45d0-897f-95271faaf44b",
    "name": "dev_sub",
    "status": "inactive",
    "url": "https://devjesse.gettveverywhere.com/wp-json/authorizenet/subscription",
    "eventTypes": [
      "net.authorize.customer.subscription.updated",
      "net.authorize.customer.subscription.created",
      "net.authorize.customer.subscription.expiring",
      "net.authorize.customer.subscription.suspended",
      "net.authorize.customer.subscription.cancelled",
      "net.authorize.customer.subscription.terminated"
    ]
  }
]&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;and when calling the ping with my php curl script:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://apitest.authorize.net/rest/v1/webhooks/b8f7a92b-3d14-45d0-897f-95271faaf44b/pings');
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Authorization: Basic ' . base64_encode(API_LOGIN_ID . ':' . TRANSACTION_KEY),
    'Content-Type: application/json'
));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, '');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

echo $response;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;i receive the following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{
  "status": 500,
  "reason": "PING_FAILED",
  "message": "The ping operation failed. This could be due to connectivity issues, invalid url or server downtime. Check the url details for the webhook and try again.",
  "correlationId": "5003a88f-4a1f-4c77-b374-84bdc1256082"
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I am unsure why authorizenet webhook is failing here. The endpoint works if i use my own php curl script with a copy of the notification info:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'http://devjesse.gettveverywhere.com/wp-json/authorizenet/customer');
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json',
    'Content-Length: 410',
    'X-Opnet-Transaction-Trace: 676a6e12-d5d2-4f72-b14f-fac44a714d87-15432-570877 Expect 100-continue',
    'X-Anet-Signature: sha512=5860384727AC755D0AAFB387EB775F1436C409E2F2BF38C6ED08717399A23FB1275A2363DC16A35A89E5541DBB3CED599A515A2165AA02EFB54596BD920ECA93'
));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"notificationId":"365a8c21-088e-4303-a11a-6d3d827cc9a4","eventType":"net.authorize.customer.created","eventDate":"2019-07-02T16:27:41.5972635Z","webhookId":"5be521cb-5805-4b25-9952-1fb661c70e71","payload":{"paymentProfiles":[{"customerType":"individual","id":"1507794447"}],"merchantCustomerId":"2200","description":"Profile created by Subscription: 5869582","entityName":"customerProfile","id":"1508341513"}}');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);

curl_close($ch);

echo $response;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 14:49:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68263#M41506</guid>
      <dc:creator>jessequinn2019</dc:creator>
      <dc:date>2019-07-03T14:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68264#M41507</link>
      <description>&lt;P&gt;The AWS ec2 link "works" for pinging for instance,&amp;nbsp;&lt;SPAN&gt;&lt;A href="http://ec2-3-84-172-111.compute-1.amazonaws.com/wp-json/authorizenet/customer" target="_blank"&gt;http://ec2-3-84-172-111.compute-1.amazonaws.com/wp-json/authorizenet/customer&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but has two problems:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. no https&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. sends only one eventType which is completely wrong (net.authorize.payment.authcapture.created).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:14:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68264#M41507</guid>
      <dc:creator>jessequinn2019</dc:creator>
      <dc:date>2019-07-03T15:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68273#M41516</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31351"&gt;@jessequinn2019&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Sounds like you’ve got a fatal error on your endpoint. I would enter that url in your browser and see if you also get a 500 response. If so, it’s not webhooks it’s your endpoint. And it’s always something other than webhooks when they don’t work. Keep trucking and you’ll be up and running.</description>
      <pubDate>Wed, 03 Jul 2019 20:54:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68273#M41516</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-03T20:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68275#M41517</link>
      <description>&lt;P&gt;thanks for the reply, but i do not recieve a 500 erorr, but rather a 404 as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you explain why the devjesse....url doesnt work but the equilavent URL from ec2 does ping? And if it does ping, only&amp;nbsp;&lt;SPAN&gt;net.authorize.payment.authcapture.created is sent as an event type while it should send all the event Types as i have setup?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With my endpoints are we suppose to give a 200 response or something? Is a response even required? how&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 10:02:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68275#M41517</guid>
      <dc:creator>jessequinn2019</dc:creator>
      <dc:date>2019-07-04T10:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68276#M41518</link>
      <description>&lt;P&gt;the exact same issue with the single event occurs with webhookinbox.com as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://webhookinbox.com/view/zK2m6LEd/" target="_blank"&gt;http://webhookinbox.com/view/zK2m6LEd/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 10:03:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68276#M41518</guid>
      <dc:creator>jessequinn2019</dc:creator>
      <dc:date>2019-07-04T10:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68277#M41519</link>
      <description>&lt;P&gt;Ok so the ping is working but only&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;net.authorize.payment.authcapture.created&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;event is being sent. webhooksinbox.com has the same issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 11:13:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68277#M41519</guid>
      <dc:creator>jessequinn2019</dc:creator>
      <dc:date>2019-07-04T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68280#M41522</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31351"&gt;@jessequinn2019&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;It is sending a sample webhook. Each individual webhook will be of only one type. I think you are working just as you need to be. Try setting it as active and running some test transactions. You should get a webhook for any transaction that is tied to an enrolled event.</description>
      <pubDate>Thu, 04 Jul 2019 18:19:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68280#M41522</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-04T18:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68323#M41557</link>
      <description>&lt;P&gt;Hi, well the issue is i want to test Fraud related events; however, even if i just select one event for a endpoint i still get the&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;net.authorize.payment.authcapture.created&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;event. If this is the only event that can be tested by pinging then this should be added to the documentation otherwise I do not understand how i am suppose to initiate a Fraud related test.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 12:42:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68323#M41557</guid>
      <dc:creator>jessequinn2019</dc:creator>
      <dc:date>2019-07-09T12:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68329#M41563</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31351"&gt;@jessequinn2019&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;The way to test that is to run test transactions.</description>
      <pubDate>Tue, 09 Jul 2019 17:13:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68329#M41563</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-09T17:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68331#M41565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;forgive the ignorance but where is that exactly done? I cannot see anything related to test transactions in my account.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 17:17:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68331#M41565</guid>
      <dc:creator>jessequinn2019</dc:creator>
      <dc:date>2019-07-09T17:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: sandbox webhook issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68339#M41572</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31351"&gt;@jessequinn2019&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;You set up your web app and run transactions using your sandbox credentials. You run transactions just as a customer would. Your transactions will trigger webhook events and a webhook will be sent for each. So set up your sandbox interface fraud settings how you want, and then deliberately run transactions that get flagged.</description>
      <pubDate>Tue, 09 Jul 2019 22:01:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sandbox-webhook-issues/m-p/68339#M41572</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-09T22:01:55Z</dc:date>
    </item>
  </channel>
</rss>

