<?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>thread Re: Getting exception when using Transaction API Charge method on Ruby SDK in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-exception-when-using-Transaction-API-Charge-method-on/m-p/34996#M94637</link>
    <description>&lt;P&gt;Seems like some kind of system error, since that phrase isn't listed anywhere in the SDK itself. Would you mind setting debugging to true in your SDK, and pasting more of the output?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/square/connect-ruby-sdk/blob/1f7fcd62cef9f259ac7575cfc4b0ace7c326113b/lib/square_connect/configuration.rb#L134" target="_blank"&gt;https://github.com/square/connect-ruby-sdk/blob/1f7fcd62cef9f259ac7575cfc4b0ace7c326113b/lib/square_connect/configuration.rb#L134&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2017 21:58:36 GMT</pubDate>
    <dc:creator>tristansokol</dc:creator>
    <dc:date>2017-04-04T21:58:36Z</dc:date>
    <item>
      <title>Getting exception when using Transaction API Charge method on Ruby SDK</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-exception-when-using-Transaction-API-Charge-method-on/m-p/34752#M94636</link>
      <description>&lt;P&gt;Im getting this exception:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Failure when receiving data from the peer&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using the Ruby SDK's Transaction API Charge method. The cards get charged, sales appear on dashboard, all ok. But it errors out on the charge call regardless. This did not happen when using the sandbox environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using:&amp;nbsp;square_connect (2.0.2.30) gem&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the call that triggers the error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;resp = transaction_api.charge(ENV["SQUARE_ACCESS_TOKEN"], locations.locations[0].id, request_body)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned above regardless of error the charge still happens and shows up as sale.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2017 02:29:36 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-exception-when-using-Transaction-API-Charge-method-on/m-p/34752#M94636</guid>
      <dc:creator>MarcelloAlb</dc:creator>
      <dc:date>2017-04-02T02:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception when using Transaction API Charge method on Ruby SDK</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-exception-when-using-Transaction-API-Charge-method-on/m-p/34996#M94637</link>
      <description>&lt;P&gt;Seems like some kind of system error, since that phrase isn't listed anywhere in the SDK itself. Would you mind setting debugging to true in your SDK, and pasting more of the output?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/square/connect-ruby-sdk/blob/1f7fcd62cef9f259ac7575cfc4b0ace7c326113b/lib/square_connect/configuration.rb#L134" target="_blank"&gt;https://github.com/square/connect-ruby-sdk/blob/1f7fcd62cef9f259ac7575cfc4b0ace7c326113b/lib/square_connect/configuration.rb#L134&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 21:58:36 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-exception-when-using-Transaction-API-Charge-method-on/m-p/34996#M94637</guid>
      <dc:creator>tristansokol</dc:creator>
      <dc:date>2017-04-04T21:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception when using Transaction API Charge method on Ruby SDK</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-exception-when-using-Transaction-API-Charge-method-on/m-p/35094#M94638</link>
      <description>&lt;P&gt;FYI, and for whoever might come across this in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This was caused by Heroku cedar-14 stack. It uses a really old version of cURL that was causing the issue. Fixed by changing my Heroku stack to heroku-16 (which is a beta version).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to state that on your Ruby SDK docs, as it might affect others running on heroku as well. I tried to create an issue on github but that seems disabled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for support!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 21:03:42 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-exception-when-using-Transaction-API-Charge-method-on/m-p/35094#M94638</guid>
      <dc:creator>MarcelloAlb</dc:creator>
      <dc:date>2017-04-05T21:03:42Z</dc:date>
    </item>
  </channel>
</rss>

