Provide your FOSSBilling customers with a variety of payment options, including Credit/Debit cards, Bank Transfer, E-Wallets, and more through Xendit.
Note Warning This extension, like FOSSBilling itself is under active development but is currently very much beta software. This means that there may be stability or security issues and it is not yet recommended for use in active production environments!
- Overview
- Table of Contents
- Installation
- Configuration
- Usage
- Troubleshooting
- Features
- Contributing
- License
- Support
The easiest way to install this extension is by using the FOSSBilling extension directory.
- Download the latest release from the GitHub repository
- Create a new folder named Xendit in the /library/Payment/Adapter directory of your FOSSBilling installation
- Extract the archive you've downloaded in the first step into the new directory
- Go to the "Payment gateways" page in your admin panel (under the "System" menu in the navigation bar) and find Xendit in the "New payment gateway" tab
- Click the cog icon next to Xendit to install and configure Xendit
- Access Xendit Settings: In your FOSSBilling admin panel, find "Xendit" under "Payment gateways."
- Enter API Credentials: Input your Xendit
API Key
andWebhook Verification Token
. You can obtain these from your Xendit dashboard. - Configure Preferences: Customize settings like sandbox mode and logging as needed.
- Save Changes: Remember to update your configuration.
- Test Transactions: It's recommended to test your gateway integration through a payment process in sandbox mode before going live.
- Go Live: Switch to live mode to start accepting real payments once testing is complete.
To set up webhooks:
- Log in to your Xendit dashboard.
- Navigate to Settings > Webhooks.
- Add a new webhook with the following URL:
https://your-fossbilling-domain.com/ipn.php?gateway_id=payment_gateway_id
(Replaceyour-fossbilling-domain.com
with your actual domain andpayment_gateway_id
with the ID assigned by FOSSBilling) - Ensure the Webhook Verification Token in your Xendit settings matches the one in your FOSSBilling configuration.
Once installed and configured, Xendit will appear as a payment option during the checkout process. The module handles various payment statuses including successful payments, pending transactions, and failed attempts.
- Check the logs at
library/Payment/Adapter/Xendit/logs/xendit.log
for detailed information on transactions and errors. - Ensure your server's IP is whitelisted in Xendit's settings if you're experiencing connection issues.
- Verify that the API keys and Webhook Verification Tokens are correctly entered in the FOSSBilling configuration.
- If you encounter timezone-related issues, check your php.ini configuration or server settings.
- Using Xendit Payment Link (https://docs.xendit.co/payment-link)
- Automatic invoice status update to 'paid' upon successful payment
- Activate service automatically after payment confirmation
- Comprehensive handling of various payment statuses (PAID, EXPIRED, PENDING, FAILED)
- Detailed transaction logging for easy tracking and debugging
I welcome contributions to enhance and improve this integration module. If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix:
git checkout -b feature-name
. - Make your changes and commit them with a clear and concise commit message.
- Push your branch to your fork:
git push origin feature-name
and create a pull request.
This FOSSBilling Xendit Payment Gateway Integration module is open-source software licensed under the Apache License 2.0.
Note: This module is not officially affiliated with FOSSBilling or Xendit. Please refer to their respective documentation for detailed information on FOSSBilling and Xendit.
For issues related to this adapter, please open an issue.
For Xendit-specific issues, please contact Xendit support.