flowcommerce-activemerchant 0.2.5 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 173df8671704de3294e36857b06b2a57f547a9c461a537f6e7660d4953490db7
4
- data.tar.gz: 7de7cf918dc82639e407e0777180520ae71707f7a83b5dd1b7b233f679c49a04
2
+ SHA1:
3
+ metadata.gz: b885901c7ae47d0208ce990fcf1390df32a69666
4
+ data.tar.gz: 33e5b7d10d7b233ecef59b1d6bc80e43f205810d
5
5
  SHA512:
6
- metadata.gz: 1648d19245be2675d2cb6e693f34f102ed70cbb3490a850913efd0140707490f6e0e649b050692da17a650d000d210ce8e02f85f0cda890a89f4b20944368735
7
- data.tar.gz: 9dfd3523f788ed8426717fafe08a8b4b119f6bb7a29a1e5951c4bf7c25378ddfd94a3d11a96f5376e80694bb2173565d3c2730f33016ff1abe37791d838c5294
6
+ metadata.gz: 46d3b8e598ef86a504405edb05d6b8242f495fcb86130ea6563fcc902f2d4415f5b1bc313a0fded8d9fc90cf2743c9376d1dee83136d8cfa293fb551700afa3a
7
+ data.tar.gz: 41bc3698c7e97e29d78049e47994444e7ca3d673fd033afadc609fcdc75126e5b677c4308932f10c51ca151b64aa46bf389237e485e894884e86df3907b7f710
data/.version CHANGED
@@ -1 +1 @@
1
- 0.2.5
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
- # def purchase money, credit_card, options={}
101
- # response = authorize money, credit_card, options
102
- # capture money, response.authorization
103
- # end
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.2.5
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-10-24 00:00:00.000000000 Z
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.7.5
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