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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2721f8e088e122ef02727b19e7dc744a7e2221437134f1b0493e33b66c56d85d
4
- data.tar.gz: 10ff7f14935df02ee25913c26050b987a9e4fb78711c32c5816ac921789a4294
3
+ metadata.gz: 173df8671704de3294e36857b06b2a57f547a9c461a537f6e7660d4953490db7
4
+ data.tar.gz: 7de7cf918dc82639e407e0777180520ae71707f7a83b5dd1b7b233f679c49a04
5
5
  SHA512:
6
- metadata.gz: 949f74872d695e887cb460b80593ceccd415579b006c307fbbb730e4136e9fbdf27b144dc927f9e4814f8b57781a53eab53ba23ca20f7a9f63c8af500fabf332
7
- data.tar.gz: 93cb44311bc5fc49e643731682f0fe8d7216e7d30aecdf68d1ea37f36bcb808d26f23d7657432c1e66e72e0d2f8031b10e2f9022e0a73d181dbc208f4cb9a8d6
6
+ metadata.gz: 1648d19245be2675d2cb6e693f34f102ed70cbb3490a850913efd0140707490f6e0e649b050692da17a650d000d210ce8e02f85f0cda890a89f4b20944368735
7
+ data.tar.gz: 9dfd3523f788ed8426717fafe08a8b4b119f6bb7a29a1e5951c4bf7c25378ddfd94a3d11a96f5376e80694bb2173565d3c2730f33016ff1abe37791d838c5294
data/.version CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 Flow Commerce
3
+ Copyright (c) 2017 - 2018 Flow Commerce Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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
- response.token
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
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-22 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant