lib/pay/braintree/billable.rb
def save_braintree_transaction(transaction)
        attrs = card_details_for_braintree_transaction(transaction)
        attrs[:amount] = transaction.amount.to_f * 100

        charge = charges.find_or_initialize_by(
          processor: :braintree,
          processor_id: transaction.id
        )
        charge.update(attrs)
        charge
      end
# Handles Billable#customer
#
# Returns Braintree::Customer
Handles Billable#customer
Returns Braintree::Customer
Handles Billable#customer Returns Braintree :: Customer
def save_braintree_transaction(transaction)
        attrs = card_details_for_braintree_transaction(transaction)
        attrs[:amount] = transaction.amount.to_f * 100
        charge = charges.find_or_initialize_by(
          processor: :braintree,
          processor_id: transaction.id
        )
        charge.update(attrs)
        charge
      end
def save_braintree_transaction ( transaction ) attrs = card_details_for_braintree_transaction ( transaction ) attrs [ :amount ] = transaction . amount . to_f * 100 charge = charges . find_or_initialize_by ( processor : :braintree , processor_id : transaction . id ) charge . update ( attrs ) charge end
Handles Billable#customer
Returns Braintree::Customer
Handles Billable#customer Returns Braintree :: Customer
transaction