braintree/braintree_php

How to pay with different currency?

WeTruck opened this issue · 5 comments

I'm following this link: https://developers.braintreepayments.com/start/hello-server/php#create-a-transaction

$result = $gateway->transaction()->sale([
  'amount' => '10.00',
  'paymentMethodNonce' => $nonceFromTheClient,
  'deviceData' => $deviceDataFromTheClient,
  'options' => [
    'submitForSettlement' => True
  ]
]);

It's working properly. But paying always in USD.
How can I pay from different currency?
Like is there any object for currency? As 'currency' => 'EUR'

Looking for help. Thanks in advance.

Hi @WeTruck, the currency is determined by your merchant account ID. We explain this a bit more in the developer docs.

Thanks @sestevens
How can I change my merchant account currency then? I'm on sandbox mode.

For additional help with this, please reach out to our support team: https://help.braintreepayments.com/