killbill-paypal-express 5.0.10 → 5.0.11
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/lib/paypal_express/api.rb +5 -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: 8493c4e85b3a6725f36693045eb83a257671dc01
|
|
4
|
+
data.tar.gz: 0e36ab0756f22cbc725fb6a830666af8abe3fd5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fda337d33428a775e8c2eb52f615fee9d1b3168740326566134cc7a97338b55085e36d7c9dda8e6f3ab17ef78181c32fe720aee219810a3a315b6995dfac20a9
|
|
7
|
+
data.tar.gz: 3f238ab7c6e900fb09f23f1eb51d48ce822858dae21bdee8583cd1e19c7dc81f6bce20e40d5ee3b9232e15d72977f45b90d30e3a6369c0a2aacb9fd5c134e0fb
|
data/lib/paypal_express/api.rb
CHANGED
|
@@ -316,13 +316,16 @@ module Killbill #:nodoc:
|
|
|
316
316
|
def initiate_express_checkout(kb_account_id, amount, currency, properties, context)
|
|
317
317
|
properties_hash = properties_to_hash(properties)
|
|
318
318
|
|
|
319
|
-
with_baid = ::Killbill::Plugin::ActiveMerchant::Utils.normalized(properties_hash, :with_baid)
|
|
320
|
-
|
|
321
319
|
options = {}
|
|
322
320
|
options[:return_url] = ::Killbill::Plugin::ActiveMerchant::Utils.normalized(properties_hash, :return_url)
|
|
323
321
|
options[:cancel_return_url] = ::Killbill::Plugin::ActiveMerchant::Utils.normalized(properties_hash, :cancel_return_url)
|
|
324
322
|
options[:payment_processor_account_id] = ::Killbill::Plugin::ActiveMerchant::Utils.normalized(properties_hash, :payment_processor_account_id)
|
|
325
323
|
|
|
324
|
+
with_baid = ::Killbill::Plugin::ActiveMerchant::Utils.normalized(properties_hash, :with_baid)
|
|
325
|
+
if with_baid
|
|
326
|
+
[:billing_agreement_type, :billing_agreement_description].each { |sym| options[sym] = ::Killbill::Plugin::ActiveMerchant::Utils.normalized(properties_hash, sym) }
|
|
327
|
+
end
|
|
328
|
+
|
|
326
329
|
add_optional_parameters options, properties_hash, currency
|
|
327
330
|
|
|
328
331
|
amount_in_cents = amount.nil? ? nil : to_cents(amount, currency)
|
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.11
|
|
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: 2019-05-
|
|
11
|
+
date: 2019-05-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|