otnansirk / laravel-xendit
This Laravel wrapper for Xendit Payment API
v1.0.0
2025-02-19 01:05 UTC
Requires
- laravel/framework: ^9.19 || ^10.0 || ^11.0 || ^12.0
- xendit/xendit-php: ^6.2.0
This package is auto-updated.
Last update: 2025-03-24 12:08:12 UTC
README
This Laravel wrapper/library for Xendit payment gateway.
Visit https://xendit.co for more information about the product and see documentation at https://developers.xendit.co for more technical details.
Laravel Xendit use the Xendit PHP SDK You can also check out the documentation for Xendit PHP SDK.
All URIs are relative to https://api.xendit.co, except if the operation defines another base path.
Installation
1. You can install the package via composer.
composer require otnansirk/laravel-xendit
2. Optional : The service provider will automatically get registered. Or you may manually.
Add the service provider in your configs/app.php
or bootstrap/providers.php
for laravel >= 11
'providers' => [ // ... Otnansirk\Xendit\XenditServiceProvider::class, ];
3. You should publish the config/xendit.php
config file with this php artisan command.
php artisan vendor:publish --provider="Otnansirk\Xendit\XenditServiceProvider"
4. To start using the Laravel Xendit, you need to configure the secret key.
read the config/xendit.php
file then fill the credentials needed.
How to Use
<?php use Otnansirk\Xendit\Facades\Xendit; // Available functions Xendit::customer(); Xendit::paymentMethod(); Xendit::paymentRequest(); Xendit::transaction(); Xendit::refund(); Xendit::balance(); Xendit::payout(); Xendit::invoice();
Find detailed API information and examples for each of our product’s by clicking the links below.
Further Reading
- Xendit Docs
- Xendit API Reference