cancel
Showing results for 
Search instead for 
Did you mean: 

Braintree CE 2.1.0 doesn't accept payments in KRW - error msg 'Amount is an invalid format.'

0 Kudos

Braintree CE 2.1.0 doesn't accept payments in KRW - error msg 'Amount is an invalid format.'

Feature request from flecxie, posted on GitHub Aug 03, 2016

I can't process KRW payments with Braintree on CE 2.1.0, getting the following error message in debug.log: Amount is an invalid format.

Steps to reproduce

  1. Create Braintree Sandbox account + additional Korean Wong Merchant Account ID
  2. Apply patch from https://github.com/magento/magento2/issues/5910 to get alternative Merchant Account ID's working
  3. Configure Magento CE 2.1.0 store for alternative merchant ID, enable Braintree debugging & place test order for a large amount (I tried with ₩826,961.35 which is equivalent to ~700 USD)

Expected result

  1. Success

Actual result

  1. Fails with error below in debug.log:
  'response' => 
  array (
    'success' => false,
    '' . "\0" . '*' . "\0" . '_attributes' =>
    array ( 
      'errors' =>
      Braintree\Error\ErrorCollection::__set_state(array(
         '_errors' =>
        Braintree\Error\ValidationErrorCollection::__set_state(array(
           '_errors' => 
          array (
          ),
           '_nested' => 
          array (
            'transaction' =>
            Braintree\Error\ValidationErrorCollection::__set_state(array(
               '_errors' => 
              array (
                0 => 
                Braintree\Error\Validation::__set_state(array(
                   '_attribute' => 'amount',
                   '_code' => '81503',
                   '_message' => 'Amount is an invalid format.',
                )), 
              ),