paypal-sdk-merchant 1.98.2 → 1.102.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZGU2MGE1N2M1OGQ2OTNjY2YzZjljNDRmNjVjMGI3NzViNWY0NTFmOQ==
5
- data.tar.gz: !binary |-
6
- YmZjODIyN2FjNmJmZWJiOGZkYjQ1MWMyNTIwOWI0ZWNlZGE3Njc1Mw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZGY5NzlmYzE0NGUwYTM3YzBlZGNkMzU0NjlmNWUzMmFjYzhlZDk5OTI2YWQ3
10
- MTU0M2Q3NGJiMTEwZGU1MThiYjgwYThkNjExNTQyZTc5MWM1YTRhNDRmZDRl
11
- NjVhODQ0YTk2YTc1NWNhN2ZkZjQ1OGZhNTAxZmMyNmFlYmM5MTU=
12
- data.tar.gz: !binary |-
13
- MDUzMTQzYzcwNWE0ZDU4Yjk0OWY0YTg2ZDY3YzQ4M2FmYzQ3MDUxYWY1ZjQ4
14
- YTcyY2FkOTgwOTQ1OTMzZGNlNmU0YmRkNmY4YzM4ODk3NWIxYzFlMTY2YzY2
15
- MTg2OWQ1MjcxNzQ5MTY4OTUwNzNmMzM4ODU3ZGNjZWMwYjUxOTQ=
2
+ SHA1:
3
+ metadata.gz: a98051bdd6ee95ca4d93bac72211513f0973736a
4
+ data.tar.gz: e31f45ffdafa0b9221ef5e8c44abfb64d59f072c
5
+ SHA512:
6
+ metadata.gz: a08ea6e0204a5953fccabbf37005fb1a27cc8ca6d0e6f2ee5a87b4c4c7cbe82548ae7dd7dc82dbca5d966308b63047bfd227c8f908baf7287953d150030cfa4d
7
+ data.tar.gz: c445a2fc38c0ad8aacb9a1c8f849b595b99aed58cdff59959e0b81cb391c95395376d3028200fc7537e1f4a9c5aac31ca8cc858218870aac9ba898c594bf78c1
data/README.md CHANGED
@@ -57,20 +57,22 @@ production:
57
57
  Load Configurations from specified file:
58
58
 
59
59
  ```ruby
60
- PayPal::SDK::Core::Config.load('config/paypal.yml', ENV['RACK_ENV'] || 'development')
60
+ PayPal::SDK.load('config/paypal.yml', ENV['RACK_ENV'] || 'development')
61
61
  ```
62
62
 
63
63
  ## Example
64
64
 
65
65
  ```ruby
66
66
  require 'paypal-sdk-merchant'
67
- @api = PayPal::SDK::Merchant::API.new(
67
+ PayPal::SDK.configure(
68
68
  :mode => "sandbox", # Set "live" for production
69
69
  :app_id => "APP-80W284485P519543T",
70
70
  :username => "jb-us-seller_api1.paypal.com",
71
71
  :password => "WX4WTU3S8MY44S7F",
72
72
  :signature => "AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy" )
73
73
 
74
+ @api = PayPal::SDK::Merchant.new
75
+
74
76
  # Build request object
75
77
  @do_direct_payment = @api.build_do_direct_payment({
76
78
  :DoDirectPaymentRequestDetails => {
@@ -88,15 +90,14 @@ require 'paypal-sdk-merchant'
88
90
  :CVV2 => "962" } } })
89
91
 
90
92
  # Make API call & get response
91
- @do_direct_payment_response = @api.do_direct_payment(@do_direct_payment)
93
+ @response = @api.do_direct_payment(@do_direct_payment)
92
94
 
93
95
  # Access Response
94
- if @do_direct_payment_response.success?
95
- @do_direct_payment_response.TransactionID
96
+ if @response.success?
97
+ @response.TransactionID
96
98
  else
97
- @do_direct_payment_response.Errors
99
+ @response.Errors
98
100
  end
99
-
100
101
  ```
101
102
 
102
103
  For more samples [paypal-sdk-samples.herokuapp.com/merchant/](https://paypal-sdk-samples.herokuapp.com/merchant/)
@@ -123,4 +124,3 @@ rails g paypal:sdk:install
123
124
  ```
124
125
 
125
126
  Run `rails server` and check the samples.
126
-
@@ -20,7 +20,7 @@ module PayPal::SDK
20
20
  :failure => ["Failure", "FailureWithWarning"] }
21
21
 
22
22
  def response_status
23
- self.ack
23
+ self.Ack
24
24
  end
25
25
 
26
26
  Status.keys.each do |status|
@@ -68,7 +68,7 @@ module PayPal::SDK
68
68
 
69
69
  # CountryCodeType This code list module defines the enumerated types of standard 2-letter ISO 3166 country codes. This codelist contains some additional country code not defined in the ISO 3166 country code set.
70
70
  class CountryCodeType < EnumType
71
- self.options = { 'AF' => 'AF', 'AL' => 'AL', 'DZ' => 'DZ', 'AS' => 'AS', 'AD' => 'AD', 'AO' => 'AO', 'AI' => 'AI', 'AQ' => 'AQ', 'AG' => 'AG', 'AR' => 'AR', 'AM' => 'AM', 'AW' => 'AW', 'AU' => 'AU', 'AT' => 'AT', 'AZ' => 'AZ', 'BS' => 'BS', 'BH' => 'BH', 'BD' => 'BD', 'BB' => 'BB', 'BY' => 'BY', 'BE' => 'BE', 'BZ' => 'BZ', 'BJ' => 'BJ', 'BM' => 'BM', 'BT' => 'BT', 'BO' => 'BO', 'BA' => 'BA', 'BW' => 'BW', 'BV' => 'BV', 'BR' => 'BR', 'IO' => 'IO', 'BN' => 'BN', 'BG' => 'BG', 'BF' => 'BF', 'BI' => 'BI', 'KH' => 'KH', 'CM' => 'CM', 'CA' => 'CA', 'CV' => 'CV', 'KY' => 'KY', 'CF' => 'CF', 'TD' => 'TD', 'CL' => 'CL', 'C' => 'C2', 'CN' => 'CN', 'CX' => 'CX', 'CC' => 'CC', 'CO' => 'CO', 'KM' => 'KM', 'CG' => 'CG', 'CD' => 'CD', 'CK' => 'CK', 'CR' => 'CR', 'CI' => 'CI', 'HR' => 'HR', 'CU' => 'CU', 'CY' => 'CY', 'CZ' => 'CZ', 'DK' => 'DK', 'DJ' => 'DJ', 'DM' => 'DM', 'DO' => 'DO', 'TP' => 'TP', 'EC' => 'EC', 'EG' => 'EG', 'SV' => 'SV', 'GQ' => 'GQ', 'ER' => 'ER', 'EE' => 'EE', 'ET' => 'ET', 'FK' => 'FK', 'FO' => 'FO', 'FJ' => 'FJ', 'FI' => 'FI', 'FR' => 'FR', 'GF' => 'GF', 'PF' => 'PF', 'TF' => 'TF', 'GA' => 'GA', 'GM' => 'GM', 'GE' => 'GE', 'DE' => 'DE', 'GH' => 'GH', 'GI' => 'GI', 'GR' => 'GR', 'GL' => 'GL', 'GD' => 'GD', 'GP' => 'GP', 'GU' => 'GU', 'GT' => 'GT', 'GN' => 'GN', 'GW' => 'GW', 'GY' => 'GY', 'HT' => 'HT', 'HM' => 'HM', 'VA' => 'VA', 'HN' => 'HN', 'HK' => 'HK', 'HU' => 'HU', 'IS' => 'IS', 'IN' => 'IN', 'ID' => 'ID', 'IR' => 'IR', 'IQ' => 'IQ', 'IE' => 'IE', 'IL' => 'IL', 'IT' => 'IT', 'JM' => 'JM', 'JP' => 'JP', 'JO' => 'JO', 'KZ' => 'KZ', 'KE' => 'KE', 'KI' => 'KI', 'KP' => 'KP', 'KR' => 'KR', 'KW' => 'KW', 'KG' => 'KG', 'LA' => 'LA', 'LV' => 'LV', 'LB' => 'LB', 'LS' => 'LS', 'LR' => 'LR', 'LY' => 'LY', 'LI' => 'LI', 'LT' => 'LT', 'LU' => 'LU', 'MO' => 'MO', 'MK' => 'MK', 'MG' => 'MG', 'MW' => 'MW', 'MY' => 'MY', 'MV' => 'MV', 'ML' => 'ML', 'MT' => 'MT', 'MH' => 'MH', 'MQ' => 'MQ', 'MR' => 'MR', 'MU' => 'MU', 'YT' => 'YT', 'MX' => 'MX', 'FM' => 'FM', 'MD' => 'MD', 'MC' => 'MC', 'MN' => 'MN', 'MS' => 'MS', 'MA' => 'MA', 'MZ' => 'MZ', 'MM' => 'MM', 'NA' => 'NA', 'NR' => 'NR', 'NP' => 'NP', 'NL' => 'NL', 'AN' => 'AN', 'NC' => 'NC', 'NZ' => 'NZ', 'NI' => 'NI', 'NE' => 'NE', 'NG' => 'NG', 'NU' => 'NU', 'NF' => 'NF', 'MP' => 'MP', 'NO' => 'NO', 'OM' => 'OM', 'PK' => 'PK', 'PW' => 'PW', 'PS' => 'PS', 'PA' => 'PA', 'PG' => 'PG', 'PY' => 'PY', 'PE' => 'PE', 'PH' => 'PH', 'PN' => 'PN', 'PL' => 'PL', 'PT' => 'PT', 'PR' => 'PR', 'QA' => 'QA', 'RE' => 'RE', 'RO' => 'RO', 'RU' => 'RU', 'RW' => 'RW', 'SH' => 'SH', 'KN' => 'KN', 'LC' => 'LC', 'PM' => 'PM', 'VC' => 'VC', 'WS' => 'WS', 'SM' => 'SM', 'ST' => 'ST', 'SA' => 'SA', 'SN' => 'SN', 'SC' => 'SC', 'SL' => 'SL', 'SG' => 'SG', 'SK' => 'SK', 'SI' => 'SI', 'SB' => 'SB', 'SO' => 'SO', 'ZA' => 'ZA', 'GS' => 'GS', 'ES' => 'ES', 'LK' => 'LK', 'SD' => 'SD', 'SR' => 'SR', 'SJ' => 'SJ', 'SZ' => 'SZ', 'SE' => 'SE', 'CH' => 'CH', 'SY' => 'SY', 'TW' => 'TW', 'TJ' => 'TJ', 'TZ' => 'TZ', 'TH' => 'TH', 'TG' => 'TG', 'TK' => 'TK', 'TO' => 'TO', 'TT' => 'TT', 'TN' => 'TN', 'TR' => 'TR', 'TM' => 'TM', 'TC' => 'TC', 'TV' => 'TV', 'UG' => 'UG', 'UA' => 'UA', 'AE' => 'AE', 'GB' => 'GB', 'US' => 'US', 'UM' => 'UM', 'UY' => 'UY', 'UZ' => 'UZ', 'VU' => 'VU', 'VE' => 'VE', 'VN' => 'VN', 'VG' => 'VG', 'VI' => 'VI', 'WF' => 'WF', 'EH' => 'EH', 'YE' => 'YE', 'YU' => 'YU', 'ZM' => 'ZM', 'ZW' => 'ZW', 'AA' => 'AA', 'QM' => 'QM', 'QN' => 'QN', 'QO' => 'QO', 'QP' => 'QP', 'CS' => 'CS', 'CUSTOMCODE' => 'CustomCode', 'GG' => 'GG', 'IM' => 'IM', 'JE' => 'JE', 'TL' => 'TL' }
71
+ self.options = { 'AF' => 'AF', 'AL' => 'AL', 'DZ' => 'DZ', 'AS' => 'AS', 'AD' => 'AD', 'AO' => 'AO', 'AI' => 'AI', 'AQ' => 'AQ', 'AG' => 'AG', 'AR' => 'AR', 'AM' => 'AM', 'AW' => 'AW', 'AU' => 'AU', 'AT' => 'AT', 'AZ' => 'AZ', 'BS' => 'BS', 'BH' => 'BH', 'BD' => 'BD', 'BB' => 'BB', 'BY' => 'BY', 'BE' => 'BE', 'BZ' => 'BZ', 'BJ' => 'BJ', 'BM' => 'BM', 'BT' => 'BT', 'BO' => 'BO', 'BA' => 'BA', 'BW' => 'BW', 'BV' => 'BV', 'BR' => 'BR', 'IO' => 'IO', 'BN' => 'BN', 'BG' => 'BG', 'BF' => 'BF', 'BI' => 'BI', 'KH' => 'KH', 'CM' => 'CM', 'CA' => 'CA', 'CV' => 'CV', 'KY' => 'KY', 'CF' => 'CF', 'TD' => 'TD', 'CL' => 'CL', 'C' => 'C2', 'CN' => 'CN', 'CX' => 'CX', 'CC' => 'CC', 'CO' => 'CO', 'KM' => 'KM', 'CG' => 'CG', 'CD' => 'CD', 'CK' => 'CK', 'CR' => 'CR', 'CI' => 'CI', 'HR' => 'HR', 'CU' => 'CU', 'CY' => 'CY', 'CZ' => 'CZ', 'DK' => 'DK', 'DJ' => 'DJ', 'DM' => 'DM', 'DO' => 'DO', 'TP' => 'TP', 'EC' => 'EC', 'EG' => 'EG', 'SV' => 'SV', 'GQ' => 'GQ', 'ER' => 'ER', 'EE' => 'EE', 'ET' => 'ET', 'FK' => 'FK', 'FO' => 'FO', 'FJ' => 'FJ', 'FI' => 'FI', 'FR' => 'FR', 'GF' => 'GF', 'PF' => 'PF', 'TF' => 'TF', 'GA' => 'GA', 'GM' => 'GM', 'GE' => 'GE', 'DE' => 'DE', 'GH' => 'GH', 'GI' => 'GI', 'GR' => 'GR', 'GL' => 'GL', 'GD' => 'GD', 'GP' => 'GP', 'GU' => 'GU', 'GT' => 'GT', 'GN' => 'GN', 'GW' => 'GW', 'GY' => 'GY', 'HT' => 'HT', 'HM' => 'HM', 'VA' => 'VA', 'HN' => 'HN', 'HK' => 'HK', 'HU' => 'HU', 'IS' => 'IS', 'IN' => 'IN', 'ID' => 'ID', 'IR' => 'IR', 'IQ' => 'IQ', 'IE' => 'IE', 'IL' => 'IL', 'IT' => 'IT', 'JM' => 'JM', 'JP' => 'JP', 'JO' => 'JO', 'KZ' => 'KZ', 'KE' => 'KE', 'KI' => 'KI', 'KP' => 'KP', 'KR' => 'KR', 'KW' => 'KW', 'KG' => 'KG', 'LA' => 'LA', 'LV' => 'LV', 'LB' => 'LB', 'LS' => 'LS', 'LR' => 'LR', 'LY' => 'LY', 'LI' => 'LI', 'LT' => 'LT', 'LU' => 'LU', 'MO' => 'MO', 'MK' => 'MK', 'MG' => 'MG', 'MW' => 'MW', 'MY' => 'MY', 'MV' => 'MV', 'ML' => 'ML', 'MT' => 'MT', 'MH' => 'MH', 'MQ' => 'MQ', 'MR' => 'MR', 'MU' => 'MU', 'YT' => 'YT', 'MX' => 'MX', 'FM' => 'FM', 'MD' => 'MD', 'MC' => 'MC', 'MN' => 'MN', 'MS' => 'MS', 'MA' => 'MA', 'MZ' => 'MZ', 'MM' => 'MM', 'NA' => 'NA', 'NR' => 'NR', 'NP' => 'NP', 'NL' => 'NL', 'AN' => 'AN', 'NC' => 'NC', 'NZ' => 'NZ', 'NI' => 'NI', 'NE' => 'NE', 'NG' => 'NG', 'NU' => 'NU', 'NF' => 'NF', 'MP' => 'MP', 'NO' => 'NO', 'OM' => 'OM', 'PK' => 'PK', 'PW' => 'PW', 'PS' => 'PS', 'PA' => 'PA', 'PG' => 'PG', 'PY' => 'PY', 'PE' => 'PE', 'PH' => 'PH', 'PN' => 'PN', 'PL' => 'PL', 'PT' => 'PT', 'PR' => 'PR', 'QA' => 'QA', 'RE' => 'RE', 'RO' => 'RO', 'RU' => 'RU', 'RW' => 'RW', 'SH' => 'SH', 'KN' => 'KN', 'LC' => 'LC', 'PM' => 'PM', 'VC' => 'VC', 'WS' => 'WS', 'SM' => 'SM', 'ST' => 'ST', 'SA' => 'SA', 'SN' => 'SN', 'SC' => 'SC', 'SL' => 'SL', 'SG' => 'SG', 'SK' => 'SK', 'SI' => 'SI', 'SB' => 'SB', 'SO' => 'SO', 'ZA' => 'ZA', 'GS' => 'GS', 'ES' => 'ES', 'LK' => 'LK', 'SD' => 'SD', 'SR' => 'SR', 'SJ' => 'SJ', 'SZ' => 'SZ', 'SE' => 'SE', 'CH' => 'CH', 'SY' => 'SY', 'TW' => 'TW', 'TJ' => 'TJ', 'TZ' => 'TZ', 'TH' => 'TH', 'TG' => 'TG', 'TK' => 'TK', 'TO' => 'TO', 'TT' => 'TT', 'TN' => 'TN', 'TR' => 'TR', 'TM' => 'TM', 'TC' => 'TC', 'TV' => 'TV', 'UG' => 'UG', 'UA' => 'UA', 'AE' => 'AE', 'GB' => 'GB', 'US' => 'US', 'UM' => 'UM', 'UY' => 'UY', 'UZ' => 'UZ', 'VU' => 'VU', 'VE' => 'VE', 'VN' => 'VN', 'VG' => 'VG', 'VI' => 'VI', 'WF' => 'WF', 'EH' => 'EH', 'YE' => 'YE', 'YU' => 'YU', 'ZM' => 'ZM', 'ZW' => 'ZW', 'AA' => 'AA', 'QM' => 'QM', 'QN' => 'QN', 'QO' => 'QO', 'QP' => 'QP', 'CS' => 'CS', 'CUSTOMCODE' => 'CustomCode', 'GG' => 'GG', 'IM' => 'IM', 'JE' => 'JE', 'TL' => 'TL', 'RS' => 'RS', 'ME' => 'ME' }
72
72
  end
73
73
 
74
74
 
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module Merchant
4
- VERSION = "1.98.2"
4
+ VERSION = "1.102.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-sdk-merchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.98.2
4
+ version: 1.102.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-26 00:00:00.000000000 Z
11
+ date: 2013-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paypal-sdk-core
@@ -33,19 +33,19 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - spec/merchant_samples_spec.rb
37
- - spec/spec_helper.rb
38
- - spec/config/paypal.yml
39
36
  - spec/config/cert_key.pem
37
+ - spec/config/paypal.yml
38
+ - spec/merchant_samples_spec.rb
40
39
  - spec/merchant_spec.rb
41
- - lib/paypal-sdk-merchant.rb
40
+ - spec/spec_helper.rb
41
+ - lib/paypal-sdk/merchant/api.rb
42
+ - lib/paypal-sdk/merchant/data_types.rb
43
+ - lib/paypal-sdk/merchant/data_types_with_bugfix.rb
42
44
  - lib/paypal-sdk/merchant/services.rb
43
45
  - lib/paypal-sdk/merchant/urls.rb
44
- - lib/paypal-sdk/merchant/data_types_with_bugfix.rb
45
- - lib/paypal-sdk/merchant/api.rb
46
46
  - lib/paypal-sdk/merchant/version.rb
47
- - lib/paypal-sdk/merchant/data_types.rb
48
47
  - lib/paypal-sdk/merchant.rb
48
+ - lib/paypal-sdk-merchant.rb
49
49
  - Rakefile
50
50
  - README.md
51
51
  - Gemfile
@@ -58,23 +58,23 @@ require_paths:
58
58
  - lib
59
59
  required_ruby_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ! '>='
61
+ - - '>='
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
- rubygems_version: 2.0.0
71
+ rubygems_version: 2.0.3
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: PayPal Merchant SDK
75
75
  test_files:
76
- - spec/merchant_samples_spec.rb
77
- - spec/spec_helper.rb
78
- - spec/config/paypal.yml
79
76
  - spec/config/cert_key.pem
77
+ - spec/config/paypal.yml
78
+ - spec/merchant_samples_spec.rb
80
79
  - spec/merchant_spec.rb
80
+ - spec/spec_helper.rb