xendit-laravel-api maintained by haaruuyaa
Description
This is Xendit API made using Laravel framework
Author
Last update
2023/06/23 09:41
(1.0.x-dev)
License
Downloads
15
Xendit Laravel API
Description
This PHP Package provides a convenient way to interact with the Xendit Laravel API using PHP Laravel. This package allows you to easily integrate Xendit payment functionality into your PHP applications.
Installation
You can install the haaruuyaa\xendit-laravel-api PHP Package via Composer. Run the following command in your project directory:
composer require haaruuyaa/xendit-laravel-api
Setup .env
You can put your API Key / Token in the .env file.
XENDIT_URL=https://api.xendit.co/
XENDIT_TOKEN=yourtoken
XENDIT_API_VERSION=2020-10-31
Usage
use Haaruuyaa\XenditApi\Facades\Ewallet;
// To create an ewallet payment
Ewallet::createPayment();
// To create an ewallet Void
Ewallet::createVoid($id);
// To create an ewallet Refund
Ewallet::createRefund($id);
// To get an update for the ewallet charge status
Ewallet::getPaymentStatus($id);