lib/braintree/customer_gateway.rb in braintree-2.23.0 vs lib/braintree/customer_gateway.rb in braintree-2.24.0
- old
+ new
@@ -72,10 +72,11 @@
def self._create_signature # :nodoc:
credit_card_signature = CreditCardGateway._create_signature - [:customer_id]
[
:company, :email, :fax, :first_name, :id, :last_name, :phone, :website,
+ :device_data,
{:credit_card => credit_card_signature},
{:custom_fields => :_any_key_}
]
end
@@ -120,9 +121,10 @@
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
[
:company, :email, :fax, :first_name, :id, :last_name, :phone, :website,
+ :device_data,
{:credit_card => credit_card_signature},
{:custom_fields => :_any_key_}
]
end
end