lib/braintree/credit_card_gateway.rb in braintree-2.66.0 vs lib/braintree/credit_card_gateway.rb in braintree-2.67.0
- old
+ new
@@ -88,21 +88,20 @@
_signature(:update)
end
def self._signature(type) # :nodoc:
billing_address_params = AddressGateway._shared_signature
- options = [:make_default, :verification_merchant_account_id, :verify_card, :verification_amount, :venmo_sdk_session]
+ options = [:make_default, :verification_merchant_account_id, :verify_card, :verification_amount, :venmo_sdk_session, :fail_on_duplicate_payment_method]
signature = [
:billing_address_id, :cardholder_name, :cvv, :device_session_id, :expiration_date,
:expiration_month, :expiration_year, :number, :token, :venmo_sdk_payment_method_code,
:device_data, :fraud_merchant_id, :payment_method_nonce,
{:options => options},
{:billing_address => billing_address_params}
]
case type
when :create
- options << :fail_on_duplicate_payment_method
signature << :customer_id
when :update
billing_address_params << {:options => [:update_existing]}
else
raise ArgumentError