定制 simmatrix/laravel-ach-processor 二次开发

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

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

simmatrix/laravel-ach-processor

Composer 安装命令:

composer require simmatrix/laravel-ach-processor

包简介

Handles direct bank transfer (ACH payment). Currently supports HSBC and UOB banks.

README 文档

README

Handles direct bank transfer (ACH payment). Currently supports HSBC and UOB banks. Generates files based on payment entries.

Acknowledgement

This is built based on Laravel COS Processor

Install

Via Composer

$ composer require simmatrix/laravel-ach-processor

Creating an Adapter

Create an adapter that implements Simmatrix\ACHProcessor\Adapter\Beneficiary\BeneficiaryAdapterInterface. This should translate your model into the attributes that will be used in the ACH entries. Refer to Simmatrix\ACHProcessor\Adapter\Beneficiary\ExampleBeneficiaryAdapter for an example.

Configuration

php artisan vendor:publish should publish a ach_processor.php into the config folder. Edit this with the configuration options for your account. Change "beneficiary_adapter" to the class of the adapter you created earlier.

Usage - Generating a file to upload

Call the relevant ACHUploadProcessorFactory subclass (either HsbcAchUploadProcessorFactory or UobAchUploadProcessorFactory) and pass in your beneficiaries, config key, and the payment description.

$beneficiaries = TestPayment::all();
$ach = HsbcAchUploadProcessorFactory::create($beneficiaries, 'ach_processor.hsbc_mri.company_a', 'CashoutOct17');
echo $ach -> getString();
$beneficiaries = TestPayment::all();
$ach = HsbcAchIFileUploadProcessorFactory::create($beneficiaries, 'ach_processor.hsbc_ifile.company_a', 'CashoutOct17');
echo $ach -> getString();
$beneficiaries = TestPayment::all();
$ach = UobAchUploadProcessorFactory::create($beneficiaries, 'ach_processor.uob.company_a', 'CashoutOct17');
echo $ach -> getString();

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固