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

Not respon testing API request #113

Closed robbynurdiansyah closed 3 years ago

robbynurdiansyah commented 3 years ago

Saya sudah membuat akun Xendit dan masih dalam tahap testing dengan menggunakan API request. Saya melakukan API request langsung dari aplikasi klien saya menggunakan codeigniter. End point yg saya coba adalah Create Customers dan Get Balance. Namun request saya tidak ada respon baik itu gagal maupun berhasil. Customers get balance

stanleynguyen commented 3 years ago

There was probably an error and you need to catch it Please refer to this guide

robbynurdiansyah commented 3 years ago

Thank you for your response. How come i can catch the message error from xendit API request? not define by me

Pada tanggal Sen, 28 Des 2020 pukul 08.22 Stanley Nguyen < notifications@github.com> menulis:

There was probably an error and you need to catch it Please refer to this guide https://www.w3schools.com/PHP/php_exception.asp

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xendit/xendit-php/issues/113#issuecomment-751542317, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASILMR6UH2GNOF3GCBCCF53SW7MUBANCNFSM4VJZGIBQ .

stanleynguyen commented 3 years ago

Thank you for your response. How come i can catch the message error from xendit API request? not define by me Pada tanggal Sen, 28 Des 2020 pukul 08.22 Stanley Nguyen < notifications@github.com> menulis: There was probably an error and you need to catch it Please refer to this guide https://www.w3schools.com/PHP/php_exception.asp — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#113 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASILMR6UH2GNOF3GCBCCF53SW7MUBANCNFSM4VJZGIBQ .

When the server returns a non-200 error, curl_exec will throw a RequestError that you have to catch. Just try and print out the error

robbynurdiansyah commented 3 years ago

i have tried with exception and i got the result Configuration file not found.

Where's the problem with that error?

Pada tanggal Sen, 28 Des 2020 pukul 09.37 Stanley Nguyen < notifications@github.com> menulis:

Thank you for your response. How come i can catch the message error from xendit API request? not define by me Pada tanggal Sen, 28 Des 2020 pukul 08.22 Stanley Nguyen < notifications@github.com> menulis: … <#m-4594006099260539340> There was probably an error and you need to catch it Please refer to this guide https://www.w3schools.com/PHP/php_exception.asp — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#113 (comment) https://github.com/xendit/xendit-php/issues/113#issuecomment-751542317>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASILMR6UH2GNOF3GCBCCF53SW7MUBANCNFSM4VJZGIBQ .

When the server returns a non-200 error, curl_exec will throw a RequestError that you have to catch. Just try and print out the error

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xendit/xendit-php/issues/113#issuecomment-751553537, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASILMRYMJEJG6RBEY3JV5MLSW7VN5ANCNFSM4VJZGIBQ .

stanleynguyen commented 3 years ago

That's probably not an API error. Can you try Googling the error message?

robbynurdiansyah commented 3 years ago

Ok thank you for your answer and suggestion. My request has successed and got response. I will explore more

Pada tanggal Sen, 28 Des 2020 pukul 09.52 Stanley Nguyen < notifications@github.com> menulis:

That's probably not an API error. Can you try Googling the error message?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xendit/xendit-php/issues/113#issuecomment-751555905, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASILMR6GZYL4BQFLYAOVNMDSW7XFTANCNFSM4VJZGIBQ .

stanleynguyen commented 3 years ago

My pleasure!