offsite_payments 2.6.3 → 2.6.4
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/lib/offsite_payments/integrations/world_pay.rb +7 -12
- data/lib/offsite_payments/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c342679456bad0cbf25b70884fabc8782e052bb4
|
4
|
+
data.tar.gz: 7c6e3c378e23a756853f77e9f6749a45d7145adb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3c061506c94b8d8aeb99e94a729683864bf5c4e703a06b41cc1edcb70196a0aef6659a8062fa6afb1bcec49c7455a8ccbea8f89c133c6098b7a7b6b1b8dc71e
|
7
|
+
data.tar.gz: d417b32eb15615ea3fc434989e992992c28209b8700655b43824bb301b7090ae5c0306bfbbdb900128fec7bc110fcb2a1d704d090dc8600472548e626b38d10e
|
@@ -34,8 +34,13 @@ module OffsitePayments #:nodoc:
|
|
34
34
|
mapping :customer, :email => 'email',
|
35
35
|
:phone => 'tel'
|
36
36
|
|
37
|
-
mapping :billing_address,
|
38
|
-
|
37
|
+
mapping :billing_address,
|
38
|
+
:address1 => 'address1',
|
39
|
+
:address2 => 'address2',
|
40
|
+
:city => 'town',
|
41
|
+
:state => 'region',
|
42
|
+
:zip => 'postcode',
|
43
|
+
:country => 'country'
|
39
44
|
|
40
45
|
mapping :description, 'desc'
|
41
46
|
mapping :notify_url, 'MC_callback'
|
@@ -62,16 +67,6 @@ module OffsitePayments #:nodoc:
|
|
62
67
|
end
|
63
68
|
end
|
64
69
|
|
65
|
-
# WorldPay only supports a single address field so we
|
66
|
-
# have to concat together - lines are separated using
|
67
|
-
def billing_address(params={})
|
68
|
-
add_field(mappings[:billing_address][:zip], params[:zip])
|
69
|
-
add_field(mappings[:billing_address][:country], lookup_country_code(params[:country]))
|
70
|
-
|
71
|
-
address = [params[:address1], params[:address2], params[:city], params[:state]].compact
|
72
|
-
add_field('address', address.join(' '))
|
73
|
-
end
|
74
|
-
|
75
70
|
# WorldPay only supports a single name field so we have to concat
|
76
71
|
def customer(params={})
|
77
72
|
add_field(mappings[:customer][:email], params[:email])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: offsite_payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Luetke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -34,16 +34,16 @@ dependencies:
|
|
34
34
|
name: i18n
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 0.6.6
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 0.6.6
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: money
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
290
|
version: '0'
|
291
291
|
requirements: []
|
292
292
|
rubyforge_project:
|
293
|
-
rubygems_version: 2.
|
293
|
+
rubygems_version: 2.6.14
|
294
294
|
signing_key:
|
295
295
|
specification_version: 4
|
296
296
|
summary: Framework and tools for dealing with offsite (hosted) payment pages.
|