定制 appstract/laravel-twikey 二次开发

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

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

appstract/laravel-twikey

最新稳定版本:1.0.1

Composer 安装命令:

composer require appstract/laravel-twikey

包简介

Wrapper for the Twikey PHP Client

README 文档

README

Latest Version on Packagist Total Downloads Software License Build Status

Installation

You can install the package via composer:

composer require appstract/laravel-twikey

Set the following values in your .env file:

TWIKEY_API_URL="<api url>"
TWIKEY_API_TOKEN="<your api token>"

Usage

Create an invitation:

$invite = Twikey::invite();

$invite->ct = 1234;
$invite->l = 'nl';
$invite->iban = 'GB33BUKB20201555555555';
$invite->bic = 'BUKBGB22';
$invite->email = 'test@example.com';
$invite->reminderDays = 14;

$invite->save();

var_dump($invite->toArray());

Find a mandate:

$mandate = Twikey::mandate()->find('ABC5');

var_dump($mandate->toArray());

Create a transaction:

$transaction = Twikey::transaction();
$transaction->mndtId = 'ABC5';
$transaction->message = 'Invoice 1234';
$transaction->amount = '84.32';

$transaction->save();

var_dump($transaction->toArray());

Testing

composer test

Contributing

Contributions are welcome, thanks to y'all :)

About Appstract

Appstract is a small team from The Netherlands. We create (open source) tools for Web Developers and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.

License

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

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-18