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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 970b025716dc5389cd01ac25702ce931e3686296
4
- data.tar.gz: faf8930e662f33a926a06c8d81c64740aa7c6d3c
3
+ metadata.gz: 913eedcc9a3244894dd570f66b759d51108ba7c6
4
+ data.tar.gz: dd6bfb8b20f9d073d4e001588bd7c0d10a0646f2
5
5
  SHA512:
6
- metadata.gz: 3d3fbf7d32ed777c35a0da4d056a0bb2bbb0b328f3551d1381f1d8feb60cb96726051730cadec9321d345ce93f0fc57b52a5ea3ab8dc1eb8867c453454445fa1
7
- data.tar.gz: 63c0b6a1eeeb30c105e2200b67394213a5d9f52bffe3e467bfcb2f2efbf3853132853ba01fe9b6ed398a66e9e7f27962bac5147d9e4ef8b1902405204684c1f1
6
+ metadata.gz: d90e70548f11dc0881ed4005f8e254a1c1f72a0eea876d20e6fe635cbfd15519d91891f94b2bb0abd1f505356eb9e025275281750d235160995c39c950b8813d
7
+ data.tar.gz: 93a62549de619d9d5bae207e1afaeb93080d5c6547436d21a964256cf936b28d514039e2b4f183eab4b328b8f6b6475ffc860471afd030aa21d9d701e87f7f13
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-paypal-express (5.0.1)
4
+ killbill-paypal-express (5.0.2)
5
5
  actionpack (~> 4.1.0)
6
6
  actionview (~> 4.1.0)
7
7
  activemerchant (~> 1.53.0)
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 5.0.2
2
+ Make text on checkout button configurable (through review plugin property)
3
+
1
4
  5.0.1
2
5
  Always issue GetExpressCheckoutDetails during authorize or purchase to store payer info
3
6
  Store PayPal error codes
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
1
+ 5.0.2
@@ -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
- gateway.redirect_url_for(response.token)
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.1</version>
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 @plugin.to_express_checkout_url(response, @call_context.tenant_id)
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
- private_plugin = ::Killbill::PaypalExpress::PrivatePaymentPlugin.new
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.1
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-01-24 00:00:00.000000000 Z
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