xendit / xendit-php

Xendit REST API Client for PHP - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services, xenPlatforms
https://developers.xendit.co/api-reference/
MIT License
152 stars 76 forks source link

check balance error "Ledger accounts found for both IDR and PHP currency, we don't know which to pick" #191

Closed capcaicah closed 1 year ago

capcaicah commented 2 years ago

hi xendit team,

when we call balance, we got error Ledger accounts found for both IDR and PHP currency, we don't know which to pick.

I check your documentation, but its not updated about legder account.

after I investigation, we found you add new query string currency(IDR / PHP) for legder

so, in balance.php i modify from :

$url = '/balance?account_type=' . $account_type

to $url = '/balance?account_type=' . $account_type.'&currency=IDR';

please update to this code so we not get error

thanks

adityarx commented 1 year ago

Closed as fixed!