vanssata/vanssata-pag-online-sdk
Composer 安装命令:
composer require vanssata/vanssata-pag-online-sdk
包简介
PagOnlineSDK Imprese PHP SDK for developers
README 文档
README
This sdk is same as mattiabasone/PagOnline but whit remove all laravel dependency
This library can be used with PagOnline Payment Gateway and it can be easily integrated in Laravel.
With this package I'm trying to improve the crappy IGFS CG PHP Library provided by PagOnline Payment gateway.
Basic Usage
Demo scripts can be found in tests/demo, example Init Request:
<?php require __DIR__.'/vendor/autoload.php'; $init = new \VanssataPagOnlineSDK\Init\IgfsCgInit(); $init->serverURL = "https://payment-gateway-example.com/IGFS_CG_SERVICES/services"; $init->tid = "MY-TID-CODE"; $init->kSig = '1234567890987654321'; $init->shopID = 'my-transaction-id'; $init->shopUserRef = "email@example.org"; $init->trType = "AUTH"; $init->currencyCode = "EUR"; $init->amount = 500; // Amount without comma (500 = 5,00) $init->langID = "IT"; $init->notifyURL = "http://my-domain.tld/verify.php"; $init->errorURL = "http://my-domain.tld/error.php"; $init->addInfo1 = 'myFirstAddintionalInfo'; // if you need to edit http client parameters... $init->setRequestTimeout(10); // Seconds $init->setConnectTimeout(5); // Seconds $init->setHttpProxy('tcp://some.proxy'); // Proxy server for requests $init->setHttpAuthUser('username'); // HTTP Basic Auth username $init->setHttpAuthPass('password'); // HTTP Basic Auth password if (!$init->execute()) { // Something went wrong } else { // Redirect user to payment gateway header("location: ".$init->redirectURL); }
.env file configuration
Set the following environment variables in your .env file:
PAGONLINE_SERVER_URLpayment gateway server url (default: null)PAGONLINE_REQUEST_TIMEOUTmaximum timeout in seconds for completing a request (default: 15)PAGONLINE_CONNECT_TIMEOUTmaximum timeout in seconds for connecting to the server (default: 5)PAGONLINE_TERMINAL_IDidentifier provided by the payment gateway (default: null)PAGONLINE_SIGNATURE_KEYsignature key provided by the payment gateway (default: null)PAGONLINE_CURRENCY_CODEcurrency code (default: EUR)PAGONLINE_LANGUAGE_IDlanguage code (default: IT)
vanssata/vanssata-pag-online-sdk 适用场景与选型建议
vanssata/vanssata-pag-online-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.53k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 03 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php sdk」 「Bulbank Italia」 「VanssataPagOnlineSDK Imprese」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vanssata/vanssata-pag-online-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vanssata/vanssata-pag-online-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vanssata/vanssata-pag-online-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Plugin that enable UniCredit Bulbank PagOnline Imprese payment provider
Alfabank REST API integration
BulBank payment functionality for Lunar.
Zero-dependency raw PHP DNS resolver, domain-ownership verification, and intoDNS/MxToolbox-style diagnostics. Queries authoritative nameservers directly over sockets — never trusts the recursive cache for ownership checks.
A lightweight plain-PHP framework for database-backed CRUD APIs.
bughq error tracking - PHP SDK
统计信息
- 总下载量: 5.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-29