承接 asagiri-moe/xendit-wrapper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

asagiri-moe/xendit-wrapper

Composer 安装命令:

composer require asagiri-moe/xendit-wrapper

包简介

A Laravel Wrapper for Xendit Payment Gateway (ID/PH)

README 文档

README

Latest Version on Packagist Total Downloads GitHub Actions

A Laravel Wrapper for Xendit Payment Gateway (ID/PH)

Installation

You can install the package via composer:

composer require asagiri-moe/xendit-wrapper

then publish the config file

php artisan vendor:publish --provider="AsagiriMoe\XenditWrapper\XenditWrapperServiceProvider"

in your .env

XENDIT_SECRET_KEY=""
XENDIT_REDIRECT_URL=""
XENDIT_CURRENCY=""
.env Description Accepted Value
XENDIT_SECRET_KEY="" Your Xendit Generated API Key. For guide how to generate API KEY: Click Here.
XENDIT_REDIRECT_URL="" Custom redirect url
XENDIT_CURRENCY="" Currency used for the transaction in ISO4217, Choose 1 which currency will you use in you apps "IDR","PHP"

Usage

Example of usage

use AsagiriMoe\XenditWrapper\XenditWrapper;

public function sendEWallet()
{
    $xendit = new XenditWrapper;

    $callback = $xendit->createEWalletPayment($idPayment, $typeEWallet, $amount, $phoneNumber, $metadata);

    return $callback;
}

Avaliable Methods and Example

E-Wallets

Create E-Wallet Charge

$callback = $xendit->createEWalletPayment($idPayment, $typeEWallet, $amount, $phoneNumber, $metadata);

QR Code (QRIS)

Create a QR Code (Currently only available in ID / Indonesia)

$callback = $xendit->createQRPayment($idPayment, $amount, $callbackUrl);

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email gfdioni@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固