承接 frenchykiller/laravel-systempay 相关项目开发

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

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

frenchykiller/laravel-systempay

Composer 安装命令:

composer require frenchykiller/laravel-systempay

包简介

Laravel component to generate a payment form for Banque Populaire Systempay

README 文档

README

Laravel GitHub StyleCI Scrutinizer Code Quality Build Status

Overview

This package provides a simple component to create a payment form for Banque Populaire's Systempay api.

Installation

In order to install the Laravel Boilerplate Systempay component, run:

composer require frenchykiller/laravel-systempay

Usage

To include the Systempay form in a page, simply add the component in your blade file:

<x-systempay :request="['amount' => 25]" />

Attributes

The following attributes are accepted:

Name Type Default Description
request array null Request containing the information to be sent to the systempay api to obtain the formToken. This request must contain the required amount field. Full documentation on aaccepted fields can be found here
hasButton boolean true Whether or not to generate the payment button and associated events. If this is set to false, you will have to send the transaction request manually with all appropriate parameters
successPost string null Post URL to redirect to if the payment is successful
successGet string null Get URL to redirect to if the payment is successful
failPost string null Post URL to redirect to if the payment is rejected
failGet string null Get URL to redirect to if the payment is rejected
site string default The name of the configuration to be used. Can be any name that is specified in the config file

Configuration

The component comes with a default config file making the component functional out of the box, however, if you wish to personalize the configuration, you can publish the config file with one of the following commands:

php vendor:publish --tag=systempay-config

By default, the configuration file located at config/systempay.php contains the following information:

return [
    'default' => [
        'site_id' => env('SYSTEMPAY_SITE_ID', '73239078'),
        'password' => env('SYSTEMPAY_PASSWORD', 'testpassword_SbEbeOueaMDyg8Rtei1bSaiB5lms9V0ZDjzldGXGAnIwH'),
        'key' => env('SYSTEMPAY_KEY', 'testpublickey_Zr3fXIKKx0mLY9YNBQEan42ano2QsdrLuyb2W54QWmUJQ'),
        'env' => env('SYSTEMPAY_ENV', 'TEST'),
        'url' => 'https://api.systempay.fr/api-payment/V4/',
        'params' => [
            'currency' => 'EUR',
            'formAction' => 'PAYMENT',
            'strongAuthentication' => 'NO_PREFERENCE', //Setting this to DISABLED will let the card issuer decide whether 3DS2 is required or not. This will also remove any payment guarantee for the merchant.
            'transactionOptions' => [
                'cardOptions' => [
                    'paymentSource' => 'EC', //Setting this to CC (Call Center) will disable all 3DS checks. This will also shift liability for chargebacks to the merchant.
                ],
            ],
        ],
    ],
];

To change the default configuration, simply set the SYSTEMPAY_SITE_ID, SYSTEMPAY_PASSWORD and SYSTEMPAY_KEY variables in the config file or your .env file. These values are given by Systempay.

If you wish to add extra sites to the same app, simply add new entries to the config file as follows:

return [
    'default' => [
        ...
    ],

    'site_name' => [
        'site_id' => 'your_site_id',
        'password' => 'your_site_password',
        'key' => 'your_site_key',
        'url' => 'https://api.systempay.fr/api-payment/V4/',
        'params' => [
            'currency' => 'USD', //required
            'formAction' => 'PAYMENT',
            'strongAuthentication' => 'ENABLED'
            //add other static params here
        ],
    ]

Testing

By default the package is set up to run in a test environment. To switch to prod you must set the SYSTEMPAY_SITE_ID, SYSTEMPAY_PASSWORD and SYSTEMPAY_KEY variables in your .env file or publish and change the config file as seen in the configuration section

Tests / Coding standards

This package is delivered with a Makefile used to launch checks for the respect of coding standards and the unit tests

Just call make to see the list of commands.

Contributing

Please see contributing.md for details and a todolist.

Credits

License

This package is free software distributed under the terms of the MIT license.

frenchykiller/laravel-systempay 适用场景与选型建议

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

它主要适用于以下技术方向: 「laravel」 「systempay」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-25