Download the PHP package bdpay/laravel-bdpay without Composer
On this page you can find all versions of the php package bdpay/laravel-bdpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bdpay/laravel-bdpay
More information about bdpay/laravel-bdpay
Files in bdpay/laravel-bdpay
Package laravel-bdpay
Short Description Laravel package for BDPay payment gateway integration
License MIT
Informations about the package laravel-bdpay
Laravel BDPay Package
A comprehensive Laravel package for integrating with BDPay payment gateway, supporting both Fund Acceptance (payments) and Fund Disbursement features.
Features
-
Fund Acceptance (Payments)
- Create Virtual Account (VA)
- Create Payment Link
- Create Static Virtual Account
- Payment status checking
- Payment webhook handling
-
Fund Disbursement
- Create disbursement transactions
- Disbursement status checking
- Account balance checking
- Disbursement webhook handling
- Additional Features
- Webhook signature verification
- Comprehensive logging
- Transaction tracking
- Multiple environment support (sandbox/production)
- Amount formatting utilities
Supported Payment Methods
Virtual Account (VA)
- VA_BCA - BCA Bank Repayment Code
- VA_MANDIRI - Mandiri Bank Repayment Code
- VA_PERMATA - Permata Bank Repayment Code
- VA_CIMB - CIMB Bank Repayment Code
- VA_BNI - BNI Bank Repayment Code
- VA_BRI - BRI Bank Repayment Code
- VA_BNC - BNC Bank Repayment Code
- VA_SAMPOERNA - SAMPOERNA Bank Repayment Code
- VA_MAYBANK - Maybank Bank Repayment Code
- VA_DANAMON - Danamon Bank Repayment Code
Retail Payment
- RETAIL_ALFAMART - Alfamart Convenience Store
Digital Payment
- QRIS - QRIS scan code supports all electronic wallets, all kinds of bank scan code payment
- EWALLET_DANA - DANA Wallet
- EWALLET_OVO - OVO Electronic Wallet
Other Features
- Payment Link (All payment methods)
- Static Virtual Account
- Disbursement (Bank Transfer)
Installation
1. Install via Composer
2. Publish Configuration
3. Publish Migrations
4. Run Migrations
5. Publish Webhook Routes (Optional)
6. Configure Environment Variables
Add the following to your .env file:
Configuration
The package configuration is located in config/bdpay.php. You can customize various settings including:
- API endpoints for different environments
- Webhook verification settings
- Logging configuration
- Default currency and timeout settings
Usage
Basic Usage
Fund Disbursement
Webhook Handling
The package automatically handles webhook callbacks at:
/bdpay/webhook/payment- For payment callbacks/bdpay/webhook/disbursement- For disbursement callbacks
Webhooks are automatically verified using signature validation. You can disable this in the configuration if needed.
Transaction Tracking
All transactions are automatically stored in the bdpay_transactions table. You can query them using the BDPayTransaction model:
Utility Methods
Supported Banks
The package supports all banks that are supported by BDPay API. Bank code validation is handled automatically by the BDPay API, so you can use any bank code that BDPay supports.
Common Indonesian banks include:
- BCA, BNI, BRI, MANDIRI, CIMB, DANAMON, PERMATA, and many more
For the most up-to-date list of supported banks, please refer to the BDPay API Documentation.
Error Handling
The package provides comprehensive error handling with custom exceptions:
Logging
The package logs all API requests and responses when logging is enabled. Logs are written to the configured channel with the specified level.
Testing
Run the test suite:
API Documentation
For detailed API documentation, visit: BDPay API Documentation
Environment URLs
- Sandbox:
https://dev-openapi.bdpay.co.id - Production:
https://openapi.bdpay.co.id
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This package is open-sourced software licensed under the MIT license.
Support
For support, please contact:
- Email: [email protected]
- Documentation: https://document.bdpay.co.id/docs/api/
Changelog
1.0.0
- Initial release
- Fund Acceptance features (VA, Payment Link, Static VA)
- Fund Disbursement features
- Webhook handling with signature verification
- Transaction tracking
- Comprehensive logging
- Multiple environment support
All versions of laravel-bdpay with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0