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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd9a7241d4599a27e75b5e959b1dca04a8eda50a
4
- data.tar.gz: a78be97e091d72e61b8730f8dbe1e2073ed9ff8d
3
+ metadata.gz: 97c92b91b5bc7bc65419383189c371caf719ad9a
4
+ data.tar.gz: a05404a5dcd565104d02c5c70a336b9765889c36
5
5
  SHA512:
6
- metadata.gz: 872300d61d43649e2b8f61c48cad25cdee1cd35eff4ad6e7dfd2b4d4a0f4bbae3e9cc50d7d84857b5be403228dcf1ba53799a12eb4b29addf1c7448a93b2ab29
7
- data.tar.gz: 8c40b48a0a345cee2478fb83d768383ed50afbe1ace45bda105b1493c8dd9e9f9d33cff01b3aad40616312f6d1b639dda183c7c052fba56e58bc3697d7a9912a
6
+ metadata.gz: c4b1abb65c24dee7402da1162ea3515dbb1d91c27b33c9b545f524a9b79f469ec8555c1f3b9dc51365754362b583477a7b04381235f97b3d35d530e7ce4be373
7
+ data.tar.gz: a414f4becd92a60c0b5928f987dbc4fcc88bc9d13f8b2f1bd12c8a1685e32e1ad4a650eced632a12f5ec79f75fb5db04b9ac1693535932cf996ad1ac6e247c99
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # paypal-express
2
2
 
3
- Handle PayPal Express Checkout.
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.0
1
+ 1.0.1.dev1
@@ -83,3 +83,5 @@ require 'paypal/payment/recurring'
83
83
  require 'paypal/payment/recurring/activation'
84
84
  require 'paypal/payment/recurring/billing'
85
85
  require 'paypal/payment/recurring/summary'
86
+
87
+ CreativePaypalExpress = Paypal
@@ -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
- response = self.request :SetExpressCheckout, params
36
- Response.new response, options
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 :GetRecurringPaymentsProfileDetails, params
99
- Response.new response
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
@@ -1,5 +1,4 @@
1
- require 'spec_helper.rb'
2
-
1
+ # rspec spec/paypal/express/request_spec.rb
3
2
  describe Paypal::Express::Request do
4
3
  class Paypal::Express::Request
5
4
  attr_accessor :_sent_params_, :_method_
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.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-08 00:00:00.000000000 Z
12
+ date: 2016-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport