creative-paypal-express 1.0.0 → 1.0.1.dev1
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/README.md +3 -19
- data/VERSION +1 -1
- data/lib/paypal.rb +2 -0
- data/lib/paypal/express/request.rb +7 -6
- data/lib/paypal/express/response.rb +5 -0
- data/spec/fake_response/CreateRecurringPaymentsProfile/success.txt +1 -1
- data/spec/paypal/express/request_spec.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97c92b91b5bc7bc65419383189c371caf719ad9a
|
4
|
+
data.tar.gz: a05404a5dcd565104d02c5c70a336b9765889c36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4b1abb65c24dee7402da1162ea3515dbb1d91c27b33c9b545f524a9b79f469ec8555c1f3b9dc51365754362b583477a7b04381235f97b3d35d530e7ce4be373
|
7
|
+
data.tar.gz: a414f4becd92a60c0b5928f987dbc4fcc88bc9d13f8b2f1bd12c8a1685e32e1ad4a650eced632a12f5ec79f75fb5db04b9ac1693535932cf996ad1ac6e247c99
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# paypal-express
|
2
2
|
|
3
|
-
|
4
|
-
Both Instance Payment and Recurring Payment are supported.
|
5
|
-
Express Checkout for Digital Goods is also supported.
|
3
|
+
Handles PayPal Express Checkout.
|
4
|
+
Both Instance Payment and Recurring Payment are supported.
|
5
|
+
Express Checkout for Digital Goods is also supported.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -10,27 +10,11 @@ Express Checkout for Digital Goods is also supported.
|
|
10
10
|
gem "creative-paypal-express", "~> 1.0.0"
|
11
11
|
```
|
12
12
|
|
13
|
-
gem install paypal-express
|
14
|
-
|
15
13
|
## Usage
|
16
14
|
|
17
15
|
See Wiki on Github
|
18
16
|
https://github.com/nov/paypal-express/wiki
|
19
17
|
|
20
|
-
Play with Sample Rails App
|
21
|
-
https://github.com/nov/paypal-express-sample
|
22
|
-
https://paypal-express-sample.heroku.com
|
23
|
-
|
24
|
-
## Note on Patches/Pull Requests
|
25
|
-
|
26
|
-
* Fork the project.
|
27
|
-
* Make your feature addition or bug fix.
|
28
|
-
* Add tests for it. This is important so I don't break it in a
|
29
|
-
future version unintentionally.
|
30
|
-
* Commit, do not mess with rakefile, version, or history.
|
31
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
32
|
-
* Send me a pull request. Bonus points for topic branches.
|
33
|
-
|
34
18
|
## Copyright
|
35
19
|
|
36
20
|
Copyright (c) 2011 nov matake. See LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1.dev1
|
data/lib/paypal.rb
CHANGED
@@ -29,11 +29,14 @@ module Paypal
|
|
29
29
|
}.each do |option_key, param_key|
|
30
30
|
params[param_key] = options[option_key] if options[option_key]
|
31
31
|
end
|
32
|
+
|
32
33
|
Array(payment_requests).each_with_index do |payment_request, index|
|
33
34
|
params.merge! payment_request.to_params(index)
|
34
35
|
end
|
35
|
-
|
36
|
-
|
36
|
+
|
37
|
+
response = self.request(:SetExpressCheckout, params)
|
38
|
+
|
39
|
+
Response.new(response, options)
|
37
40
|
end
|
38
41
|
|
39
42
|
def details(token)
|
@@ -95,8 +98,8 @@ module Paypal
|
|
95
98
|
params = {
|
96
99
|
:PROFILEID => profile_id
|
97
100
|
}
|
98
|
-
response = self.request
|
99
|
-
Response.new
|
101
|
+
response = self.request(:GetRecurringPaymentsProfileDetails, params)
|
102
|
+
Response.new(response)
|
100
103
|
end
|
101
104
|
|
102
105
|
def renew!(profile_id, action, options = {})
|
@@ -123,7 +126,6 @@ module Paypal
|
|
123
126
|
renew!(profile_id, :Reactivate, options)
|
124
127
|
end
|
125
128
|
|
126
|
-
|
127
129
|
# Reference Transaction Specific
|
128
130
|
|
129
131
|
def agree!(token, options = {})
|
@@ -167,7 +169,6 @@ module Paypal
|
|
167
169
|
Response.new response
|
168
170
|
end
|
169
171
|
|
170
|
-
|
171
172
|
# Refund Specific
|
172
173
|
|
173
174
|
def refund!(transaction_id, options = {})
|
@@ -13,6 +13,11 @@ module Paypal
|
|
13
13
|
# :VERSION=>"66.0"
|
14
14
|
# }
|
15
15
|
def initialize(response, options = {})
|
16
|
+
puts "== DEBUGGING PAYPAL Response#initialize =="
|
17
|
+
puts "response:\n#{response}"
|
18
|
+
puts "options:\n#{options}"
|
19
|
+
puts "=========================================="
|
20
|
+
|
16
21
|
super response
|
17
22
|
@pay_on_paypal = options[:pay_on_paypal]
|
18
23
|
@mobile = options[:mobile]
|
@@ -1 +1 @@
|
|
1
|
-
PROFILEID=I%2dL8N58XFUCET3&PROFILESTATUS=ActiveProfile&TIMESTAMP=2011%2d02%2d08T07%3a17%3a51Z&CORRELATIONID=7d2e125f5ca63&ACK=Success&VERSION=66%2e0&BUILD=1704252
|
1
|
+
PROFILEID=I%2dL8N58XFUCET3&PROFILESTATUS=ActiveProfile&TIMESTAMP=2011%2d02%2d08T07%3a17%3a51Z&CORRELATIONID=7d2e125f5ca63&ACK=Success&VERSION=66%2e0&BUILD=1704252
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: creative-paypal-express
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1.dev1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|