定制 patricmutwiri/pesapal 二次开发

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

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

patricmutwiri/pesapal

最新稳定版本:v1.1.0

Composer 安装命令:

composer require patricmutwiri/pesapal

包简介

Pesapal Laravel Package; Payments via pesapal in laravel made easy.

README 文档

README

Latest Version on Packagist Total Downloads GitHub Actions

This package is meant to help you integrate painlessly with Pesapal. In the end, you can receive payments through Pesapal API v3.0 in your application.

Installation

You can install the package via composer:

composer require patricmutwiri/pesapal

Usage

// Load your invoice from DB, like
$invoice = Invoice::find(1);
// Then use it below
$paymentReq = new Request([
    'amount' => $invoice->balance,
    'email' => $invoice->user->email,
    'phone' => $invoice->user->phone,
    'first_name' => explode(' ', $invoice->user->name)[0],
    'last_name' => explode(' ', $invoice->user->name)[1],
    'id' => sprintf("%s-%s", $invoice->invoice_number, date('YmdHis')),
]);

// you can pass ipn_id above from your DB, or let the service add the latest one for you.

return Pesapal::payNow($paymentReq);

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 dev@patric.xyz instead and log it under the issue tracker. All security vulnerabilities will be promptly addressed. Please do not disclose serious security-related issues publicly until a fix has been announced.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固