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

feat: add ApiValidationException to handle API_VALIDATION_ERROR #129

Closed nazieb closed 2 years ago

nazieb commented 3 years ago

Currently when API returns API_VALIDATION_ERROR, there is no way for the caller to access the errors field in the response body which contains the information of which parameters that are invalid and the reason why they're marked as invalid.