flowcommerce-activemerchant 0.2.5 → 0.3.1
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 +5 -5
- data/.version +1 -1
- data/lib/active_merchant/billing/gateways/flow.rb +6 -5
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: b885901c7ae47d0208ce990fcf1390df32a69666
|
|
4
|
+
data.tar.gz: 33e5b7d10d7b233ecef59b1d6bc80e43f205810d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46d3b8e598ef86a504405edb05d6b8242f495fcb86130ea6563fcc902f2d4415f5b1bc313a0fded8d9fc90cf2743c9376d1dee83136d8cfa293fb551700afa3a
|
|
7
|
+
data.tar.gz: 41bc3698c7e97e29d78049e47994444e7ca3d673fd033afadc609fcdc75126e5b677c4308932f10c51ca151b64aa46bf389237e485e894884e86df3907b7f710
|
data/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.3.1
|
|
@@ -58,7 +58,7 @@ module ActiveMerchant
|
|
|
58
58
|
|
|
59
59
|
response = flow_instance.authorizations.post @flow_organization, body
|
|
60
60
|
|
|
61
|
-
Response.new true, 'Flow authorize - Success', { response: response }
|
|
61
|
+
Response.new true, 'Flow authorize - Success', { response: response }, { authorization: response.id }
|
|
62
62
|
rescue => exception
|
|
63
63
|
error_response exception
|
|
64
64
|
end
|
|
@@ -97,10 +97,10 @@ module ActiveMerchant
|
|
|
97
97
|
error_response exception
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
def purchase credit_card, order_number, options={}
|
|
101
|
+
response = authorize credit_card, order_number, options
|
|
102
|
+
capture options[:amount], response.authorization, options
|
|
103
|
+
end
|
|
104
104
|
|
|
105
105
|
# https://docs.flow.io/module/payment/resource/reversals#post-organization-reversals
|
|
106
106
|
# if amount is not provided, reverse the full or remaining amount
|
|
@@ -162,6 +162,7 @@ module ActiveMerchant
|
|
|
162
162
|
cvv: credit_card.verification_value,
|
|
163
163
|
expiration_year: credit_card.year.to_i,
|
|
164
164
|
expiration_month: credit_card.month.to_i
|
|
165
|
+
address: credit_card.address
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
response = flow_instance.cards.post @flow_organization, data
|
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.
|
|
4
|
+
version: 0.3.1
|
|
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-
|
|
11
|
+
date: 2018-11-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemerchant
|
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
83
83
|
version: '0'
|
|
84
84
|
requirements: []
|
|
85
85
|
rubyforge_project:
|
|
86
|
-
rubygems_version: 2.
|
|
86
|
+
rubygems_version: 2.5.2.3
|
|
87
87
|
signing_key:
|
|
88
88
|
specification_version: 4
|
|
89
89
|
summary: Adapter for Flow.io global payment gateway
|