定制 otnansirk/laravel-xendit 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

otnansirk/laravel-xendit

最新稳定版本:v1.0.0

Composer 安装命令:

composer require otnansirk/laravel-xendit

包简介

This Laravel wrapper for Xendit Payment API

README 文档

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

统计信息

  • 总下载量: 28
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-19