killbill-paypal-express 5.0.10 → 5.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/paypal_express/api.rb +5 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9de38af01beeb4e23a75b92e14b66964395942c1
4
- data.tar.gz: 080e677a51da62d270b338321fb9e634b0faa80a
3
+ metadata.gz: 8493c4e85b3a6725f36693045eb83a257671dc01
4
+ data.tar.gz: 0e36ab0756f22cbc725fb6a830666af8abe3fd5f
5
5
  SHA512:
6
- metadata.gz: 273ff0d4fe2126034642e389c943658e8cf6205b7cbdb9a3656365749948490d621b35763638128acc5785b8e81bfeb33322c74d39560d88137b94aef8084b17
7
- data.tar.gz: 43b9c1e0af4f871bf062a2f85dd5129c453b0b16f7618436a50cfe06c55e07a1c741d066f15bceff7daa072769bf914ac98ffd41c8c198c4aed3fc324c5341d0
6
+ metadata.gz: fda337d33428a775e8c2eb52f615fee9d1b3168740326566134cc7a97338b55085e36d7c9dda8e6f3ab17ef78181c32fe720aee219810a3a315b6995dfac20a9
7
+ data.tar.gz: 3f238ab7c6e900fb09f23f1eb51d48ce822858dae21bdee8583cd1e19c7dc81f6bce20e40d5ee3b9232e15d72977f45b90d30e3a6369c0a2aacb9fd5c134e0fb
@@ -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.10
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-16 00:00:00.000000000 Z
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