swiss-crm-activemerchant 1.0.17 → 1.0.19

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: f9f3c0642e29d168e2c1222210a1d8c4270d907f04b1d0f55f73fb624b9d6089
4
- data.tar.gz: 913da09a8856bfdf6f716329ba1c21a1c92373092603980ba115c9b8b9a11cf9
3
+ metadata.gz: 494d113f7f8d2156d533377e7acad75ad78afcdfbbed5b3de1a05a8ad923db00
4
+ data.tar.gz: 0c76aa50faf179d794317f50d30336971a42a0ccc1d92e03451a93948d55ba79
5
5
  SHA512:
6
- metadata.gz: 8353b3411c97bdc1e321ba0c9e87c9f898f9b41d64b54ced4cd710f670a6540b39a47b3efb2fa060c51c3e8078a034d807f0cab1eddbe1b614c4a2f4136481fd
7
- data.tar.gz: b76e9eb213d7df98df0eb5d17dac021ddd52c25e7599fd0f32a898a40f4a069c83ac68a9980919bba2ee324439473c45efb58190257a5de5188bae7550cc54ea
6
+ metadata.gz: 0d5d9f254c4657e805f043a04d0f4f547d1ba246695f252c423df6db4346cc6e40fbf0952c55f1e2135acc9e2e06271789a3e566799e717df8707d2670e05df0
7
+ data.tar.gz: 937d2e67ae60281abff651f376d0295c0b42761f8db3a6b46759a410ff6d0a7af3f912bbe4a161ad221ed2778f94357d537448105b5f204591389f4e7148172b
@@ -127,7 +127,6 @@ module ActiveMerchant #:nodoc:
127
127
  post[:identity] = identity_id
128
128
  add_payment_method(post, payment_source, options)
129
129
  add_address(post, options)
130
-
131
130
  commit('payment_instruments', post, nil, options)
132
131
  end
133
132
 
@@ -163,8 +162,12 @@ module ActiveMerchant #:nodoc:
163
162
 
164
163
  def add_payment_method(post, payment_source, options)
165
164
  billing = options[:billing_address] || {}
166
- post[:type] = 'TOKEN'
167
- post[:token] = payment_source[:gateway_payment_profile_id]
165
+ post[:type] = 'PAYMENT_CARD'
166
+ post[:name] = billing[:name]
167
+ post[:number] = payment_source.number
168
+ post[:expiration_month] = payment_source.month
169
+ post[:expiration_year] = payment_source.year
170
+ post[:security_code] = payment_source.verification_value
168
171
  end
169
172
 
170
173
  def add_invoice(post, amount, options)
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = '1.0.17'
2
+ VERSION = '1.0.19'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swiss-crm-activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-08 00:00:00.000000000 Z
11
+ date: 2025-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport