lib/braintree/customer_gateway.rb in braintree-2.74.0 vs lib/braintree/customer_gateway.rb in braintree-2.75.0
- old
+ new
@@ -73,11 +73,17 @@
def self._create_signature # :nodoc:
credit_card_signature = CreditCardGateway._create_signature - [:customer_id]
paypal_account_signature = PayPalAccountGateway._create_nested_signature
options = [
- :paypal => [:payee_email],
+ :paypal => [
+ :payee_email,
+ :order_id,
+ :custom_field,
+ :description,
+ :amount,
+ ],
]
[
:company, :email, :fax, :first_name, :id, :last_name, :phone, :website,
:device_data, :payment_method_nonce,
{:risk_data => [:customer_browser, :customer_ip]},
@@ -128,10 +134,10 @@
def self._update_signature # :nodoc:
credit_card_signature = CreditCardGateway._update_signature - [:customer_id]
credit_card_options = credit_card_signature.find { |item| item.respond_to?(:keys) && item.keys == [:options] }
credit_card_options[:options] << :update_existing_token
options = [
- :paypal => [:payee_email],
+ :paypal => [:payee_email, :order_id, :custom_field, :description, :amount],
]
[
:company, :email, :fax, :first_name, :id, :last_name, :phone, :website,
:device_data, :payment_method_nonce, :default_payment_method_token,
{:credit_card => credit_card_signature},