定制 multisafepay/laravel-api 二次开发

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

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

multisafepay/laravel-api

Composer 安装命令:

composer require multisafepay/laravel-api

包简介

Package for Laravel which wraps the MultiSafepay PHP-SDK

README 文档

README

MultiSafepay package for Laravel

This is a package for Laravel which wraps the MultiSafepay/php-sdk for easy integration with MultiSafepay. The package:

  • Supports automatically loading API settings from the Laravel configuration
  • Is callable by either the helper methods, a service container, or through a dedicated facade
  • Is compatible with Laravel Lumen

Latest stable version

About MultiSafepay

MultiSafepay is a collecting payment service provider, which means we take care of electronic contracts, technical details, and payment collection for each payment method. You can start selling online today and manage all your transactions in one place.

Installation (Laravel 7/8/9/10)

Run composer require multisafepay/laravel-api http-interop/http-factory-guzzle.

Lumen

Provider

Register the following provider in the bootstrap/app.php. file:

$app->register(\MultiSafepay\Laravel\MultiSafepayServiceProvider::class);  

Facades

To enable facades, register them in the bootstrap/app.php.

$app->withFacades(true,  [
"MultiSafepay\\Laravel\\Facades\\MultiSafepay" => "MultiSafepay",
"MultiSafepay\\Laravel\\Facades\\MultiSafepayOrders" => "MultiSafepayOrders",
"MultiSafepay\\Laravel\\Facades\\MultiSafepayGateways" => "MultiSafepayGateways",
"MultiSafepay\\Laravel\\Facades\\MultiSafepayIssuers" => "MultiSafepayIssuers", 
]);  

Configuration

In your .env file, set the following environment variables:

  • MULTISAFEPAY_APIKEY

Set this to your site API key:

  • MULTISAFEPAY_ENVIRONMENT

Set this to live or test depending on whether you want to process transactions on our LIVE or TEST platform.

Example

You can use the transaction API in 3 ways:

//Using helper function
$transaction = multisafepayTransactionManager('apikey', 'environment')->get('id');
//Using service container
$transactionManager = $app->makeWith(TransactionManager::class, ['apikey' => 'xxxx', 'environment' => 'live']);
$transaction = $transactionManager->get('id');
//Using facade accessor
$transaction = MultiSafepayTransactionManager::get('id');

Support

Create an issue on this repository or email integration@multisafepay.com

Contributors

To contribute, create a pull request on this repository. We'll send you some MultiSafepay swag as a thank you!

License

Open Software License (OSL 3.0)

Want to be part of the team?

Are you a developer interested in working at MultiSafepay? Check out our job openings and feel free to get in touch!

multisafepay/laravel-api 适用场景与选型建议

multisafepay/laravel-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 54.04k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2020 年 09 月 11 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 multisafepay/laravel-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 multisafepay/laravel-api 我们能提供哪些服务?
定制开发 / 二次开发

基于 multisafepay/laravel-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 54.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 14
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-11