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
156 stars 76 forks source link

Remove User-Agent header to prevent blocking by firewall #86

Closed triasrahman closed 4 years ago

triasrahman commented 4 years ago

Related to #62

stanleynguyen commented 4 years ago

Hey @triasrahman, thanks for your contribution. We are rolling out a proper fix in our system so this change won't be necessary. In the mean time, if you would like to override the agent, I suggest https://github.com/xendit/xendit-php#use-custom-http-client

agusesetiyono commented 4 years ago

Got error when add 'User-Agent' => null

Client error: GET https://api.xendit.co/balance?account_type=cash resulted in a 400 Bad Request response: {"error_code":"API_VALIDATION_ERROR","message":"There was an error with the format submitted to the server.","errors":[{ (truncated...)

stanleynguyen commented 4 years ago

Hi @agusesetiyono, account_type must be in caps CASH