lib/braintree/transaction_gateway.rb in braintree-2.6.3 vs lib/braintree/transaction_gateway.rb in braintree-2.7.0
- old
+ new
@@ -87,20 +87,22 @@
end
end
def self._create_signature # :nodoc:
[
- :amount, :customer_id, :merchant_account_id, :order_id, :payment_method_token, :shipping_address_id, :type,
+ :amount, :customer_id, :merchant_account_id, :order_id, :payment_method_token,
+ :purchase_order_number, :shipping_address_id, :type, :tax_amount, :tax_exempt,
{:credit_card => [:token, :cardholder_name, :cvv, :expiration_date, :expiration_month, :expiration_year, :number]},
{:customer => [:id, :company, :email, :fax, :first_name, :last_name, :phone, :website]},
{
:billing => AddressGateway._shared_signature
},
{
:shipping => AddressGateway._shared_signature
},
{:options => [:store_in_vault, :submit_for_settlement, :add_billing_address_to_payment_method, :store_shipping_address_in_vault]},
- {:custom_fields => :_any_key_}
+ {:custom_fields => :_any_key_},
+ {:descriptor => [:name, :phone]}
]
end
def _do_create(url, params=nil) # :nodoc:
response = @config.http.post url, params