xendit-php icon indicating copy to clipboard operation
xendit-php copied to clipboard

Enabling developer to set custom 'callback-url' to any Requests sent to Xendit API.

Open Karuna053 opened this issue 1 year ago • 5 comments

According to https://docs.xendit.co/ewallet/integrations/best-practices, it is possible to set up a dynamic callback URL by including 'callback-url' in the request header, but I couldn't find any ways to include this in the current xendit-php.

This is my fix for it. Coders now only need to add 'callback-url' to the parameter used in src/ApiOperations/Request.php. image

Karuna053 avatar Jul 28 '23 10:07 Karuna053

cc @xen-HendryZheng @ellennugroho

Karuna053 avatar Jul 31 '23 03:07 Karuna053

Hi @Karuna053, thank you for raising this. We don't support a universal header to set callback URL. This will vary with each product you're using. For example, a callback can be set for create QR here https://developers.xendit.co/api-reference/#create-qr-code.

adityarx avatar Jul 31 '23 08:07 adityarx

In that case, is the ability to set up callback-url in createEWalletCharge() just not supported in general? I've read it in the ewallet documentation that you could, so I was under the impression it is possible to set up dynamic callback-url on ewallet functions, specifically in createEWalletCharge().

Karuna053 avatar Aug 07 '23 08:08 Karuna053

Hi, I'm currently having a hard time doing the payment function with Vitural Account and using USD. Can you help me?

trunghieu26 avatar Sep 08 '23 07:09 trunghieu26

@trunghieu26 can you raise it through [email protected] or on https://help.xendit.co/hc/en-us? Our CS team will be happy to help you

adityarx avatar Sep 13 '23 02:09 adityarx