hailocab/braintree-go — pull request #4 by iand (2014-09-19 11:36:15+00:00)
Title: Capture amounts as strings so raw value available to client apps

Adds AmountStr and ServiceFeeAmountStr fields to Transaction as strings to capture the original data sent by Braintree. Populate the existing Amount and ServiceFeeAmount fields by parsing the string fields for backwards compatibility.

Clients can avoid rounding errors by parsing the string versions of the fields themselves.