paypal-sdk-adaptivepayments 1.101.0 → 1.103.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
- MmMwODVhNDhjMjQ4ODA2ZDI2ZDU5Yjg4MDE3ODBkYTc1ZGQ1YTA0OA==
5
- data.tar.gz: !binary |-
6
- MWUzYTk5MDAwM2U3NzE3YzE0NWFmZDBhOWEwMjA4M2MxMjRlNzM2Zg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- YmI0M2I1YWZhYjI0OGI1Y2YwMzQ2ODI0MWViNTdmYTU4YzQ0YjUyOTZlMjZm
10
- Y2NjOGU4YTQzZWI2ZWE1ODM4ODQ4MjAyYjZjMWFmZmE4Zjk0YjNiMTE1ZmM0
11
- ZTg1NGJkNGViYzc3ZGY5NmRmY2YyYTU3MDYwZDFhZTZkYzQwMGY=
12
- data.tar.gz: !binary |-
13
- NzBlZTJjNTJkZmVkNGNjMjgwNzc0OWEyZGVmZjg5Y2QzOTM1OWQ2NzY5NzM0
14
- ZmQ5ZDEwMDcyZGVjMmY5NWU0NWJiNGEzZmU4ZjU0YzQzMTg2OWE1OTI5NWMy
15
- ZTFhODYwZjZiYmQ0ZmM2OTQ1Y2E5ZTYzNTQ1NjUyM2VmYTA5ZTQ=
2
+ SHA1:
3
+ metadata.gz: 298528d0634dd6f8f3c4d1f55900e1bf09ca1179
4
+ data.tar.gz: cdba3e235373199c5fa1f249022061f42b0420ae
5
+ SHA512:
6
+ metadata.gz: 25c942f96c7d06a6ef30b0eb007d308ee71bc05c9aba7d98563a83847b5b75da07600ff7c4a96181cb5661a34c3390d157d8345f480ee7b5353f54c49d271949
7
+ data.tar.gz: 0441d98494667f3b8d1a41c16c576e6acdeaabf1c443a0cc7a6d4ed7cb943437492f3af844a9b94863743a0a28faa18897c0be7e6d954a01246dfd34e0b4dbdf
data/README.md CHANGED
@@ -63,13 +63,13 @@ production:
63
63
  Load Configurations from specified file:
64
64
 
65
65
  ```ruby
66
- PayPal::SDK::Core::Config.load('config/paypal.yml', ENV['RACK_ENV'] || 'development')
66
+ PayPal::SDK.load('config/paypal.yml', ENV['RACK_ENV'] || 'development')
67
67
  ```
68
68
 
69
69
  Or without configuration file:
70
70
 
71
71
  ```ruby
72
- @api = PayPal::SDK::AdaptivePayments::API.new(
72
+ PayPal::SDK.configure(
73
73
  :mode => "sandbox", # Set "live" for production
74
74
  :app_id => "APP-80W284485P519543T",
75
75
  :username => "jb-us-seller_api1.paypal.com",
@@ -81,13 +81,15 @@ Or without configuration file:
81
81
 
82
82
  ```ruby
83
83
  require 'paypal-sdk-adaptivepayments'
84
- @api = PayPal::SDK::AdaptivePayments::API.new(
84
+ PayPal::SDK.configure(
85
85
  :mode => "sandbox", # Set "live" for production
86
86
  :app_id => "APP-80W284485P519543T",
87
87
  :username => "jb-us-seller_api1.paypal.com",
88
88
  :password => "WX4WTU3S8MY44S7F",
89
89
  :signature => "AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy" )
90
90
 
91
+ @api = PayPal::SDK::AdaptivePayments.new
92
+
91
93
  # Build request object
92
94
  @pay = @api.build_pay({
93
95
  :actionType => "PAY",
@@ -102,14 +104,14 @@ require 'paypal-sdk-adaptivepayments'
102
104
  :returnUrl => "http://localhost:3000/samples/adaptive_payments/pay" })
103
105
 
104
106
  # Make API call & get response
105
- @pay_response = @api.pay(@pay)
107
+ @response = @api.pay(@pay)
106
108
 
107
109
  # Access response
108
- if @pay_response.success?
109
- @pay_response.payKey
110
- @api.payment_url(@pay_response) # Url to complete payment
110
+ if @response.success?
111
+ @response.payKey
112
+ @api.payment_url(@response) # Url to complete payment
111
113
  else
112
- @pay_response.error[0].message
114
+ @response.error[0].message
113
115
  end
114
116
  ```
115
117
 
@@ -137,5 +139,3 @@ rails g paypal:sdk:install
137
139
  ```
138
140
 
139
141
  Run `rails server` and check the samples.
140
-
141
-
@@ -357,6 +357,7 @@ module PayPal::SDK
357
357
  object_of :firstName, String, :required => true
358
358
  # The last (family) name of the end consumer as known by the institution.
359
359
  object_of :lastName, String, :required => true
360
+ object_of :middleName, String
360
361
  # The full name of the end consumer as known by the institution.
361
362
  object_of :displayName, String, :required => true
362
363
  # The unique identifier as assigned to the end consumer by the institution.
@@ -364,6 +365,8 @@ module PayPal::SDK
364
365
  # The two-character ISO country code of the home country of the end consumer
365
366
  object_of :countryCode, String, :required => true
366
367
  object_of :email, String
368
+ object_of :dateOfBirth, Date
369
+ object_of :address, BaseAddress
367
370
  end
368
371
  end
369
372
 
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module AdaptivePayments
4
- VERSION = "1.101.0"
4
+ VERSION = "1.103.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-adaptivepayments
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.101.0
4
+ version: 1.103.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-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paypal-sdk-core
@@ -34,17 +34,17 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - spec/adaptive_payments_examples_spec.rb
37
- - spec/spec_helper.rb
38
- - spec/convert_currency_spec.rb
39
- - spec/config/paypal.yml
40
37
  - spec/config/cert_key.pem
41
- - lib/paypal-sdk-adaptivepayments.rb
38
+ - spec/config/paypal.yml
39
+ - spec/convert_currency_spec.rb
40
+ - spec/spec_helper.rb
41
+ - lib/paypal-sdk/adaptive_payments/api.rb
42
+ - lib/paypal-sdk/adaptive_payments/data_types.rb
42
43
  - lib/paypal-sdk/adaptive_payments/services.rb
43
44
  - lib/paypal-sdk/adaptive_payments/urls.rb
44
- - lib/paypal-sdk/adaptive_payments/api.rb
45
45
  - lib/paypal-sdk/adaptive_payments/version.rb
46
- - lib/paypal-sdk/adaptive_payments/data_types.rb
47
46
  - lib/paypal-sdk/adaptive_payments.rb
47
+ - lib/paypal-sdk-adaptivepayments.rb
48
48
  - Rakefile
49
49
  - README.md
50
50
  - Gemfile
@@ -57,23 +57,23 @@ require_paths:
57
57
  - lib
58
58
  required_ruby_version: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ! '>='
60
+ - - '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ! '>='
65
+ - - '>='
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  requirements: []
69
69
  rubyforge_project:
70
- rubygems_version: 2.0.0
70
+ rubygems_version: 2.0.3
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: PayPal Adaptive Payments SDK
74
74
  test_files:
75
75
  - spec/adaptive_payments_examples_spec.rb
76
- - spec/spec_helper.rb
77
- - spec/convert_currency_spec.rb
78
- - spec/config/paypal.yml
79
76
  - spec/config/cert_key.pem
77
+ - spec/config/paypal.yml
78
+ - spec/convert_currency_spec.rb
79
+ - spec/spec_helper.rb