<?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 ARB Transaction has no subscription data attached in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67112#M40583</link>
    <description>&lt;P&gt;We have a membership that is 2 weeks (14 days) free, then ~$35/month afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the ARB subscription is created with a start date 2 weeks into the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[refId] =&amp;gt; 9419EF760A2922539392
[subscription] =&amp;gt; Array (
  [name] =&amp;gt; Membership with free trial
  [paymentSchedule] =&amp;gt; Array (
    [interval] =&amp;gt; Array (
      [length] =&amp;gt; 1
      [unit] =&amp;gt; months
    )
    [startDate] =&amp;gt; 2019-04-05
    [totalOccurrences] =&amp;gt; 9999
  )
  [amount] =&amp;gt; 35.00
  [payment] =&amp;gt; Array (
    [creditCard] =&amp;gt; Array (
      [cardNumber] =&amp;gt; 4111111111111111
      [expirationDate] =&amp;gt; 12-2019
      [cardCode] =&amp;gt; 123
    )
  )
  [order] =&amp;gt; Array (
    [invoiceNumber] =&amp;gt; 9419EF760A2922539392
    [description] =&amp;gt; Membership with free trial
  )
  [billTo] =&amp;gt; Array (
    [firstName] =&amp;gt; Test
    [lastName] =&amp;gt; Person
  )
)&lt;/PRE&gt;&lt;P&gt;When the Webhook is recieved and we poll for the transaction data, the response has NO `subscription` data with it like we would expect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample of the data we're getting about the transaction:&lt;/P&gt;&lt;PRE&gt;[transaction] =&amp;gt; (
  [transId] =&amp;gt; 61627073813
  [submitTimeUTC] =&amp;gt; 2019-03-20T10:46:44.95Z
  [submitTimeLocal] =&amp;gt; 2019-03-20T03:46:44.95
  [transactionType] =&amp;gt; authCaptureTransaction
  [transactionStatus] =&amp;gt; capturedPendingSettlement
  [responseCode] =&amp;gt; 1
  [responseReasonCode] =&amp;gt; 1
  [responseReasonDescription] =&amp;gt; Approval
  [authCode] =&amp;gt; 020636
  [AVSResponse] =&amp;gt; Y
  [order] =&amp;gt; (
    [invoiceNumber] =&amp;gt; 800774C638E101805611
    [description] =&amp;gt; Personal
    [discountAmount] =&amp;gt; 0
    [taxIsAfterDiscount] =&amp;gt;
  )
  [authAmount] =&amp;gt; 35
  [settleAmount] =&amp;gt; 35
  [taxExempt] =&amp;gt;
  [payment] =&amp;gt; (
    [creditCard] =&amp;gt; (
      [cardNumber] =&amp;gt; XXXX1111
      [expirationDate] =&amp;gt; XXXX
      [cardType] =&amp;gt; Visa
    )
  )
  [billTo] =&amp;gt; (
    [firstName] =&amp;gt; Test
    [lastName] =&amp;gt; Person
    [address] =&amp;gt; 123 Fake Street
    [city] =&amp;gt; Some City
    [state] =&amp;gt; TX
    [zip] =&amp;gt; 55555
    [country] =&amp;gt; US
  )
  [recurringBilling] =&amp;gt;
  [product] =&amp;gt; Card Not Present
  [marketType] =&amp;gt; eCommerce
)
[messages] =&amp;gt; (
  [resultCode] =&amp;gt; Ok
  [message] =&amp;gt; (
    [0] =&amp;gt; (
      [code] =&amp;gt; I00001
      [text] =&amp;gt; Successful.
    )
  )
)&lt;/PRE&gt;&lt;P&gt;In some cases `[recurringBilling] =&amp;gt;` will be `[recurringBilling] =&amp;gt; 1` and in others its just empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there's no indication of the subscription this transaction was for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample of what we would expect to be getting:&lt;/P&gt;&lt;PRE&gt;[transaction] =&amp;gt;  (
  [transId] =&amp;gt; 40027109996
  [submitTimeUTC] =&amp;gt; 2019-03-22T09:08:21.73Z
  [submitTimeLocal] =&amp;gt; 2019-03-22T02:08:21.73
  [transactionType] =&amp;gt; authCaptureTransaction
  [transactionStatus] =&amp;gt; capturedPendingSettlement
  [responseCode] =&amp;gt; 1
  [responseReasonCode] =&amp;gt; 1
  [subscription] =&amp;gt;  (
    [id] =&amp;gt; 5707378
    [payNum] =&amp;gt; 1
  )
  [responseReasonDescription] =&amp;gt; Approval
  [authCode] =&amp;gt; XC8BL5
  [AVSResponse] =&amp;gt; Y
  [cardCodeResponse] =&amp;gt; P
  [order] =&amp;gt;  (
    [invoiceNumber] =&amp;gt; 9415F30319B437831972
    [description] =&amp;gt; Membership without free trial
    [discountAmount] =&amp;gt; 0
    [taxIsAfterDiscount] =&amp;gt;
  )
  [authAmount] =&amp;gt; 35
  [settleAmount] =&amp;gt; 35
  [taxExempt] =&amp;gt;
  [payment] =&amp;gt;  (
    [creditCard] =&amp;gt;  (
      [cardNumber] =&amp;gt; XXXX1111
      [expirationDate] =&amp;gt; XXXX
      [cardType] =&amp;gt; Visa
    )
  )
  [billTo] =&amp;gt;  (
    [firstName] =&amp;gt; Test
    [lastName] =&amp;gt; Person
  )
  [recurringBilling] =&amp;gt;
  [product] =&amp;gt; Card Not Present
  [marketType] =&amp;gt; eCommerce
)
[messages] =&amp;gt;  (
  [resultCode] =&amp;gt; Ok
  [message] =&amp;gt;  (
    [0] =&amp;gt;  (
      [code] =&amp;gt; I00001
      [text] =&amp;gt; Successful.
    )
  )
)&lt;/PRE&gt;&lt;P&gt;Which does have some `subscription` data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me figure out why there's no `subscription` data in our transaction poll data?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2019 21:16:55 GMT</pubDate>
    <dc:creator>cartpauj</dc:creator>
    <dc:date>2019-03-22T21:16:55Z</dc:date>
    <item>
      <title>ARB Transaction has no subscription data attached</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67112#M40583</link>
      <description>&lt;P&gt;We have a membership that is 2 weeks (14 days) free, then ~$35/month afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the ARB subscription is created with a start date 2 weeks into the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[refId] =&amp;gt; 9419EF760A2922539392
[subscription] =&amp;gt; Array (
  [name] =&amp;gt; Membership with free trial
  [paymentSchedule] =&amp;gt; Array (
    [interval] =&amp;gt; Array (
      [length] =&amp;gt; 1
      [unit] =&amp;gt; months
    )
    [startDate] =&amp;gt; 2019-04-05
    [totalOccurrences] =&amp;gt; 9999
  )
  [amount] =&amp;gt; 35.00
  [payment] =&amp;gt; Array (
    [creditCard] =&amp;gt; Array (
      [cardNumber] =&amp;gt; 4111111111111111
      [expirationDate] =&amp;gt; 12-2019
      [cardCode] =&amp;gt; 123
    )
  )
  [order] =&amp;gt; Array (
    [invoiceNumber] =&amp;gt; 9419EF760A2922539392
    [description] =&amp;gt; Membership with free trial
  )
  [billTo] =&amp;gt; Array (
    [firstName] =&amp;gt; Test
    [lastName] =&amp;gt; Person
  )
)&lt;/PRE&gt;&lt;P&gt;When the Webhook is recieved and we poll for the transaction data, the response has NO `subscription` data with it like we would expect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample of the data we're getting about the transaction:&lt;/P&gt;&lt;PRE&gt;[transaction] =&amp;gt; (
  [transId] =&amp;gt; 61627073813
  [submitTimeUTC] =&amp;gt; 2019-03-20T10:46:44.95Z
  [submitTimeLocal] =&amp;gt; 2019-03-20T03:46:44.95
  [transactionType] =&amp;gt; authCaptureTransaction
  [transactionStatus] =&amp;gt; capturedPendingSettlement
  [responseCode] =&amp;gt; 1
  [responseReasonCode] =&amp;gt; 1
  [responseReasonDescription] =&amp;gt; Approval
  [authCode] =&amp;gt; 020636
  [AVSResponse] =&amp;gt; Y
  [order] =&amp;gt; (
    [invoiceNumber] =&amp;gt; 800774C638E101805611
    [description] =&amp;gt; Personal
    [discountAmount] =&amp;gt; 0
    [taxIsAfterDiscount] =&amp;gt;
  )
  [authAmount] =&amp;gt; 35
  [settleAmount] =&amp;gt; 35
  [taxExempt] =&amp;gt;
  [payment] =&amp;gt; (
    [creditCard] =&amp;gt; (
      [cardNumber] =&amp;gt; XXXX1111
      [expirationDate] =&amp;gt; XXXX
      [cardType] =&amp;gt; Visa
    )
  )
  [billTo] =&amp;gt; (
    [firstName] =&amp;gt; Test
    [lastName] =&amp;gt; Person
    [address] =&amp;gt; 123 Fake Street
    [city] =&amp;gt; Some City
    [state] =&amp;gt; TX
    [zip] =&amp;gt; 55555
    [country] =&amp;gt; US
  )
  [recurringBilling] =&amp;gt;
  [product] =&amp;gt; Card Not Present
  [marketType] =&amp;gt; eCommerce
)
[messages] =&amp;gt; (
  [resultCode] =&amp;gt; Ok
  [message] =&amp;gt; (
    [0] =&amp;gt; (
      [code] =&amp;gt; I00001
      [text] =&amp;gt; Successful.
    )
  )
)&lt;/PRE&gt;&lt;P&gt;In some cases `[recurringBilling] =&amp;gt;` will be `[recurringBilling] =&amp;gt; 1` and in others its just empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there's no indication of the subscription this transaction was for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample of what we would expect to be getting:&lt;/P&gt;&lt;PRE&gt;[transaction] =&amp;gt;  (
  [transId] =&amp;gt; 40027109996
  [submitTimeUTC] =&amp;gt; 2019-03-22T09:08:21.73Z
  [submitTimeLocal] =&amp;gt; 2019-03-22T02:08:21.73
  [transactionType] =&amp;gt; authCaptureTransaction
  [transactionStatus] =&amp;gt; capturedPendingSettlement
  [responseCode] =&amp;gt; 1
  [responseReasonCode] =&amp;gt; 1
  [subscription] =&amp;gt;  (
    [id] =&amp;gt; 5707378
    [payNum] =&amp;gt; 1
  )
  [responseReasonDescription] =&amp;gt; Approval
  [authCode] =&amp;gt; XC8BL5
  [AVSResponse] =&amp;gt; Y
  [cardCodeResponse] =&amp;gt; P
  [order] =&amp;gt;  (
    [invoiceNumber] =&amp;gt; 9415F30319B437831972
    [description] =&amp;gt; Membership without free trial
    [discountAmount] =&amp;gt; 0
    [taxIsAfterDiscount] =&amp;gt;
  )
  [authAmount] =&amp;gt; 35
  [settleAmount] =&amp;gt; 35
  [taxExempt] =&amp;gt;
  [payment] =&amp;gt;  (
    [creditCard] =&amp;gt;  (
      [cardNumber] =&amp;gt; XXXX1111
      [expirationDate] =&amp;gt; XXXX
      [cardType] =&amp;gt; Visa
    )
  )
  [billTo] =&amp;gt;  (
    [firstName] =&amp;gt; Test
    [lastName] =&amp;gt; Person
  )
  [recurringBilling] =&amp;gt;
  [product] =&amp;gt; Card Not Present
  [marketType] =&amp;gt; eCommerce
)
[messages] =&amp;gt;  (
  [resultCode] =&amp;gt; Ok
  [message] =&amp;gt;  (
    [0] =&amp;gt;  (
      [code] =&amp;gt; I00001
      [text] =&amp;gt; Successful.
    )
  )
)&lt;/PRE&gt;&lt;P&gt;Which does have some `subscription` data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me figure out why there's no `subscription` data in our transaction poll data?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 21:16:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67112#M40583</guid>
      <dc:creator>cartpauj</dc:creator>
      <dc:date>2019-03-22T21:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: ARB Transaction has no subscription data attached</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67113#M40584</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/13801"&gt;@cartpauj&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;What you can do is set your subscription data in the line items in the API call. They will be in the response.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Mar 2019 22:26:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67113#M40584</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-03-22T22:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: ARB Transaction has no subscription data attached</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67114#M40585</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/13801"&gt;@cartpauj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the transID you got from the webhook and call the API&amp;nbsp;&lt;/P&gt;
&lt;H3 id="transaction-reporting-get-transaction-details"&gt;Get Transaction Details&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/index.html#transaction-reporting-get-transaction-details" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#transaction-reporting-get-transaction-details&lt;/A&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the response if its subscription transaction you will be able to see the below information also .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;lt;subscription&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;id&amp;gt;5486668&amp;lt;/id&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;payNum&amp;gt;1&amp;lt;/payNum&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/subscription&amp;gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 23:04:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67114#M40585</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2019-03-22T23:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: ARB Transaction has no subscription data attached</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67145#M40602</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21382"&gt;@Anurag&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are doing that:&lt;/P&gt;&lt;PRE&gt; 
  public function get_transaction_details($id) {
    return $this-&amp;gt;send_request('getTransactionDetailsRequest', array('transId' =&amp;gt; $id));
  }
 &lt;/PRE&gt;&lt;P&gt;But for no explainable reason, some of them return no subscription data, most do.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 16:41:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67145#M40602</guid>
      <dc:creator>cartpauj</dc:creator>
      <dc:date>2019-03-25T16:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: ARB Transaction has no subscription data attached</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67306#M40737</link>
      <description>&lt;P&gt;Anyone have any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 18:04:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67306#M40737</guid>
      <dc:creator>cartpauj</dc:creator>
      <dc:date>2019-04-08T18:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: ARB Transaction has no subscription data attached</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67501#M40896</link>
      <description>&lt;P&gt;Here's how we're querying the transaction data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  /**
  * Fetch transaction details from the Auth.net API
  * @param int Transaction ID
  * @return object|null JSON decoded transaction object. NULL on API error.
  */
  public function get_transaction_details($id) {
    return $this-&amp;gt;send_request('getTransactionDetailsRequest', array('transId' =&amp;gt; $id));
  }

  /**
  * Send request to the Auth.net api
  * @param string $type API request type
  * @param array $args API request arguments
  * @return object|null JSON decoded transaction object. NULL on API error.
  */
  public function send_request($type, $args = array()) {
    $post_body = json_encode(
      array(
        $type =&amp;gt; array(
          'merchantAuthentication' =&amp;gt; array(
            'name' =&amp;gt; $this-&amp;gt;login_name,
            'transactionKey' =&amp;gt; $this-&amp;gt;transaction_key
          ),
          'transId' =&amp;gt; $args['transId']
        )
      )
    );

    $api_response_body = wp_remote_retrieve_body(wp_remote_post($this-&amp;gt;api_endpoint, array('body' =&amp;gt; $post_body, 'headers' =&amp;gt; array('content-type' =&amp;gt; 'application/json'))));
    // Authorize.net is sending some garbage at the beginning of the response body that is not valid JSON
    // Reference: https://community.developer.authorize.net/t5/Integration-and-Testing/JSON-issues/td-p/48851
    $api_response_body = preg_replace('/^[^\{]*/', '', $api_response_body);
    $response_json = json_decode($api_response_body);

    if($response_json-&amp;gt;messages-&amp;gt;resultCode === 'Error') {
      foreach ($response_json-&amp;gt;messages-&amp;gt;message as $error) {
        Utils::error_log('Authorize API Error ' . $error-&amp;gt;code . '-' . $error-&amp;gt;text);
      }
      return null;
    }
    else {
      return $response_json;
    }
  }&lt;/PRE&gt;&lt;P&gt;We use the following endpoint also:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.authorize.net/xml/v1/request.api&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Apr 2019 18:11:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67501#M40896</guid>
      <dc:creator>cartpauj</dc:creator>
      <dc:date>2019-04-24T18:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: ARB Transaction has no subscription data attached</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67867#M41176</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/13801"&gt;@cartpauj&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Here's how we're querying the transaction data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  /**
  * Fetch transaction details from the Auth.net API
  * @param int Transaction ID
  * @return object|null JSON decoded transaction object. NULL on API error.
  */
  public function get_transaction_details($id) {
    return $this-&amp;gt;send_request('getTransactionDetailsRequest', array('transId' =&amp;gt; $id));
  }

  /**
  * Send request to the Auth.net api
  * @param string $type API request type
  * @param array $args API request arguments
  * @return object|null JSON decoded transaction object. NULL on API error.
  */
  public function send_request($type, $args = array()) {
    $post_body = json_encode(
      array(
        $type =&amp;gt; array(
          'merchantAuthentication' =&amp;gt; array(
            'name' =&amp;gt; $this-&amp;gt;login_name,
            'transactionKey' =&amp;gt; $this-&amp;gt;transaction_key
          ),
          'transId' =&amp;gt; $args['transId']
        )
      )
    );

    $api_response_body = wp_remote_retrieve_body(wp_remote_post($this-&amp;gt;api_endpoint, array('body' =&amp;gt; $post_body, 'headers' =&amp;gt; array('content-type' =&amp;gt; 'application/json'))));
    // Authorize.net is sending some garbage at the beginning of the response body that is not valid JSON
    // Reference: https://community.developer.authorize.net/t5/Integration-and-Testing/JSON-issues/td-p/48851
    $api_response_body = preg_replace('/^[^\{]*/', '', $api_response_body);
    $response_json = json_decode($api_response_body);

    if($response_json-&amp;gt;messages-&amp;gt;resultCode === 'Error') {
      foreach ($response_json-&amp;gt;messages-&amp;gt;message as $error) {
        Utils::error_log('Authorize API Error ' . $error-&amp;gt;code . '-' . $error-&amp;gt;text);
      }
      return null;
    }
    else {
      return $response_json;
    }
  }&lt;/PRE&gt;&lt;P&gt;We use the following endpoint also:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.authorize.net/xml/v1/request.api&lt;/PRE&gt;&lt;HR /&gt;&lt;BR /&gt;Nice compilation here! Thnx for sharing.&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 30 May 2019 10:34:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Transaction-has-no-subscription-data-attached/m-p/67867#M41176</guid>
      <dc:creator>Brian_Francisca</dc:creator>
      <dc:date>2019-05-30T10:34:49Z</dc:date>
    </item>
  </channel>
</rss>

