flowcommerce-activemerchant 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.version +1 -1
- data/LICENSE +1 -1
- data/lib/active_merchant/billing/gateways/flow.rb +9 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 173df8671704de3294e36857b06b2a57f547a9c461a537f6e7660d4953490db7
|
|
4
|
+
data.tar.gz: 7de7cf918dc82639e407e0777180520ae71707f7a83b5dd1b7b233f679c49a04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1648d19245be2675d2cb6e693f34f102ed70cbb3490a850913efd0140707490f6e0e649b050692da17a650d000d210ce8e02f85f0cda890a89f4b20944368735
|
|
7
|
+
data.tar.gz: 9dfd3523f788ed8426717fafe08a8b4b119f6bb7a29a1e5951c4bf7c25378ddfd94a3d11a96f5376e80694bb2173565d3c2730f33016ff1abe37791d838c5294
|
data/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.5
|
data/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @Flow.io (2017)
|
|
1
|
+
# @Flow.io (2017)
|
|
2
2
|
# Active Merchant adapter for Flow api
|
|
3
3
|
|
|
4
4
|
require 'flowcommerce-reference'
|
|
@@ -165,7 +165,14 @@ module ActiveMerchant
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
response = flow_instance.cards.post @flow_organization, data
|
|
168
|
-
|
|
168
|
+
|
|
169
|
+
if response.respond_to?(:token)
|
|
170
|
+
Response.new true, 'Flow refund - Success', { response: response }
|
|
171
|
+
else
|
|
172
|
+
Response.new false, 'Flow POST /:organization/cards - Failure', { response: response }
|
|
173
|
+
end
|
|
174
|
+
rescue Io::Flow::V0::HttpClient::ServerError => exception
|
|
175
|
+
error_response exception
|
|
169
176
|
end
|
|
170
177
|
|
|
171
178
|
# Creates and order
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flowcommerce-activemerchant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dino Reic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemerchant
|