killbill-paypal-express 5.0.1 → 5.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/NEWS +3 -0
- data/README.md +1 -0
- data/VERSION +1 -1
- data/lib/paypal_express/api.rb +0 -6
- data/lib/paypal_express/private_api.rb +2 -1
- data/pom.xml +1 -1
- data/spec/paypal_express/remote/baid_spec_helpers.rb +4 -3
- 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: 913eedcc9a3244894dd570f66b759d51108ba7c6
|
4
|
+
data.tar.gz: dd6bfb8b20f9d073d4e001588bd7c0d10a0646f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d90e70548f11dc0881ed4005f8e254a1c1f72a0eea876d20e6fe635cbfd15519d91891f94b2bb0abd1f505356eb9e025275281750d235160995c39c950b8813d
|
7
|
+
data.tar.gz: 93a62549de619d9d5bae207e1afaeb93080d5c6547436d21a964256cf936b28d514039e2b4f183eab4b328b8f6b6475ffc860471afd030aa21d9d701e87f7f13
|
data/Gemfile.lock
CHANGED
data/NEWS
CHANGED
data/README.md
CHANGED
@@ -262,3 +262,4 @@ Below is a list of optional parameters for build_form_descriptor call. More deta
|
|
262
262
|
| invoice_id | Your own invoice or tracking number. This will be overridden by order_id. |
|
263
263
|
| notify_url | Your URL for receiving Instant Payment Notification (IPN) about this transaction. If you do not specify this value in the request, the notification URL from your Merchant Profile is used, if one exists.|
|
264
264
|
| items | This parameter must be a JSON Array that contains a list of Hashes with keys of `name`, `number`, `quantity`, `amount`, `description`, `url` and `category`. |
|
265
|
+
| review | If false, checkout button is set to Pay now. |
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.0.
|
1
|
+
5.0.2
|
data/lib/paypal_express/api.rb
CHANGED
@@ -263,12 +263,6 @@ module Killbill #:nodoc:
|
|
263
263
|
end
|
264
264
|
end
|
265
265
|
|
266
|
-
def to_express_checkout_url(response, kb_tenant_id, options = {})
|
267
|
-
payment_processor_account_id = options[:payment_processor_account_id] || :default
|
268
|
-
gateway = lookup_gateway(payment_processor_account_id, kb_tenant_id)
|
269
|
-
gateway.redirect_url_for(response.token)
|
270
|
-
end
|
271
|
-
|
272
266
|
protected
|
273
267
|
|
274
268
|
def get_active_merchant_module
|
@@ -34,7 +34,8 @@ module Killbill #:nodoc:
|
|
34
34
|
def to_express_checkout_url(response, kb_tenant_id = nil, options = {})
|
35
35
|
payment_processor_account_id = options[:payment_processor_account_id] || :default
|
36
36
|
gateway = gateway(payment_processor_account_id, kb_tenant_id)
|
37
|
-
|
37
|
+
review = ::Killbill::Plugin::ActiveMerchant::Utils.normalized(options, :review)
|
38
|
+
gateway.redirect_url_for(response.token, :review => review)
|
38
39
|
end
|
39
40
|
|
40
41
|
def get_external_keys_for_accounts(kb_account_ids, kb_tenant_id)
|
data/pom.xml
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
<groupId>org.kill-bill.billing.plugin.ruby</groupId>
|
27
27
|
<artifactId>paypal-express-plugin</artifactId>
|
28
28
|
<packaging>pom</packaging>
|
29
|
-
<version>5.0.
|
29
|
+
<version>5.0.2</version>
|
30
30
|
<name>paypal-express-plugin</name>
|
31
31
|
<url>http://github.com/killbill/killbill-paypal-express-plugin</url>
|
32
32
|
<description>Plugin for accessing Paypal Express Checkout as a payment gateway</description>
|
@@ -17,11 +17,13 @@ module Killbill
|
|
17
17
|
kb_account_id = SecureRandom.uuid
|
18
18
|
external_key, kb_account_id = create_kb_account(kb_account_id, @plugin.kb_apis.proxied_services[:account_user_api])
|
19
19
|
|
20
|
+
@private_plugin = ::Killbill::PaypalExpress::PrivatePaymentPlugin.new
|
21
|
+
|
20
22
|
# Initiate the setup process
|
21
23
|
response = create_token(kb_account_id, @call_context.tenant_id, options)
|
22
24
|
token = response.token
|
23
25
|
|
24
|
-
login_and_confirm @
|
26
|
+
login_and_confirm @private_plugin.to_express_checkout_url(response, @call_context.tenant_id)
|
25
27
|
|
26
28
|
# Complete the setup process
|
27
29
|
@properties = []
|
@@ -34,8 +36,7 @@ module Killbill
|
|
34
36
|
private
|
35
37
|
|
36
38
|
def create_token(kb_account_id, kb_tenant_id, options)
|
37
|
-
|
38
|
-
response = private_plugin.initiate_express_checkout(kb_account_id, kb_tenant_id, @amount, @currency, true, options)
|
39
|
+
response = @private_plugin.initiate_express_checkout(kb_account_id, kb_tenant_id, @amount, @currency, true, options)
|
39
40
|
response.success.should be_true
|
40
41
|
response
|
41
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-paypal-express
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kill Bill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|