offsite_payments 2.6.3 → 2.6.4

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
2
  SHA1:
3
- metadata.gz: 87c7fc8d1a740a6e961414c6d7ff75aa9c329164
4
- data.tar.gz: 02dadce5d17d6cd2b7805fc6e42ebe23fc7c2306
3
+ metadata.gz: c342679456bad0cbf25b70884fabc8782e052bb4
4
+ data.tar.gz: 7c6e3c378e23a756853f77e9f6749a45d7145adb
5
5
  SHA512:
6
- metadata.gz: f8cadc83a386bdd0b9851f373a0a743f73618180e944caeabfa6f39d518d2b992da8c40489a3ab0edb21e65bb1796b509f1d67d113988a56bbe17b22880bf35a
7
- data.tar.gz: aae420cc67d1a0c7e943ccf989203b81423860b81e8f9d2d3209a4f7172d7c14b54ae6febfb50842fd3615054eb47a81dfa72a5d0d862b538294dd31e3c3dae0
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, :zip => 'postcode',
38
- :country => 'country'
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])
@@ -1,3 +1,3 @@
1
1
  module OffsitePayments
2
- VERSION = "2.6.3"
2
+ VERSION = "2.6.4"
3
3
  end
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.3
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: 2017-11-07 00:00:00.000000000 Z
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: '0.5'
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: '0.5'
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.5.2.1
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.