PHP中的Braintree API成功和货币问题

My braintree integration is going well - there's just two minor issues.

Firstly what is the option name to pass through and specify a currency code e.g.:

$options = [
    "amount" => "10.00"
    "creditCard" => [
            "number" => "",
            "cvv"    => "",
            "expirationMonth" => "",
            "expirationYear" => ""
        ],
    "currencyCode" => "AUD" // This is what im after?
];

Secondly, when I run the code below I get this: "Undefined property: Braintree_Result_Successful::$_attributes" when running the check on success?

$result = Braintree_Transaction::sale($this->collect_data());

if($result->success) { // do something }

I work at Braintree. If you have more questions, please feel free to get in touch with our support team.

To use a different currency, you specify a different merchant account:

$result = Braintree_Transaction::sale(array(
  'amount' => '100.00',
  'merchantAccountId' => 'gbp_merchant_account',
  'creditCard' => array(
    'number' => '5105105105105100',
    'expirationDate' => '05/12'
  )
));

Contact Braintree to get the additional merchant accounts set up.

For your second question, I've not seen that error before. Your best bet is to contact Braintree support so they can help you with the problem.