Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 4 commits into from

Conversation

Karuna053
Copy link

@Karuna053 Karuna053 commented Jul 28, 2023

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

… , you can dynamically set Callback URLs by adding the callback-url header to your request, but there is no options that lets me do that. Here is my addition to this SDK for it to work.
@Karuna053
Copy link
Author

cc @xen-HendryZheng @ellennugroho

@adityarx
Copy link

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.

@Karuna053
Copy link
Author

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().

@trunghieu26
Copy link

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

@adityarx
Copy link

@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

@MaxKusnadi MaxKusnadi closed this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants