invays/bog-payments
Composer 安装命令:
composer require invays/bog-payments
包简介
README 文档
README
This library was created to simplify software development for various PHP frameworks and CMS. It allows you to easily integrate your website or service with the Bank of Georgia payment system.
The library provides the basic functions for creating a payment form, reading order information, and returning an order to the user's personal account manager.
Business Notes:
The library is designed to allow you to create multiple online stores and use it with different accounts. Therefore, this library can be used in e-commerce with a franchise model.
Dev Notes
The library use Guzzle http client ("guzzlehttp/guzzle": "^7.4"). So be sure that you have updated it.
Installation
Install the package via Composer. Run the Composer require command from the Terminal:
composer require invays/bog-payments
Example
Use included variables for template.
use Invays\BogPayments\BogPayments; $bog->order->setLanguage('en'); $bog->order->setCurrency('GEL'); $bog->order->setCallbackUrl('https://example.com/notify'); $order_info = $bog->order->create_order([ 'shop_order_id' => 'OR-855', 'customer' => [ 'full_name' => 'John Doe', 'masked_email' => 'jonh.doe@example.com', 'masked_phone' => '0123456789', ], 'products' => [ [ 'product_id' => 'product123', 'quantity' => 1, 'price' => 100, ], [ 'product_id' => 'product123de', 'quantity' => 1, 'price' => 525, ], ], 'delivery_cost' => 1000 ]);
Use custom user variable. with theme and redirect links.
use Invays\BogPayments\BogPayments; $bog = new BogPayments(0000, '000000'); $bog->order->setLanguage('en'); $bog->order->setCurrency('GEL'); $bog->order->setCallbackUrl('https://example.com/notify'); $bog->order->setFailureUrl('https://example.com/failure'); $bog->order->setSuccessUrl('https://example.com/success'); $bog->order->setHeaderTheme('dark'); $order_info = $bog->order->create_order([ 'shop_order_id' => 'OR-855', 'customer' => [ 'full_name' => 'John Doe', 'masked_email' => 'jonh.doe@example.com', 'masked_phone' => '0123456789', ], 'products' => [ [ 'product_id' => 'product123', 'quantity' => 1, 'price' => 100, ], [ 'product_id' => 'product123de', 'quantity' => 1, 'price' => 525, ], ], 'delivery_cost' => 1000 ]);
Create refund
use Invays\BogPayments\BogPayments; $bog = new BogPayments(0000, '000000'); $bog->refund->create_refund('order_id', 10.0);
Create installment button
use Invays\BogPayments\BogPayments; // Use separate key for installment $bog = new BogPayments(00000, '', 'installment'); $bog->installment->setButtonText('My custom text'); $bog->installment->setCallbackUrl('https://example.com/notify');
invays/bog-payments 适用场景与选型建议
invays/bog-payments 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 03 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Bank of Georgia」 「bog api」 「bog online payments」 「bog payment integration」 「bog api php」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 invays/bog-payments 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 invays/bog-payments 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 invays/bog-payments 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony integration for Czech bank account library
Check for holidays - localeaware
PHP library for working with Georgian payment providers and banks
TBC Bank (Georgia) integration with Magento 2
A basic wrapper for citco/carbon which returns business days between two given dates.
Iranian payment gateways handler for laravel applicationss
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-11