moka-united/moka-united-ge-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

moka-united/moka-united-ge-php

Composer 安装命令:

composer require moka-united/moka-united-ge-php

包简介

United Payment Georgia PHP Client

README 文档

README

The United Payment Georgia API PHP Client provides convenient access to the United Payment Georgia API from applications written in the PHP language.

Requirements

  • PHP 7.4 or higher

Installation

You can install the bindings via Composer. Run the following command:

composer require moka-united/moka-united-ge-php

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the autoload.php file.

require_once('autoload.php');

Dependencies

The bindings require the following PHP extensions in order to work properly:

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started

use MokaUnitedGE\MokaUnitedClient;

$client = new MokaUnitedClient([
    'dealerCode' => '',
    'username' => '',
    'password' => '',
]);

Response Handling

All service calls return a Response object. Common methods:

$response->getStatusCode();
$response->getResultCode();
$response->getResultMessage();
$response->getData();
$response->getBody();
$response->getHeaders();
$response->getException();
$response->isSuccessful();

If isSuccessful() returns true, access the payload via getData().

Payment Service

Create Payment

$client->payments()->create([
    "Amount" => 0.01,
    "Currency" => "GEL",
    "BankCode" => 1,
    "CardToken" => "63F8C2BF-F76D-46C1-BB0E-C699692CB678",
    "InstallmentNumber" => 1,
    "ClientIP" => "203.0.113.21",
    "OtherTrxCode" => "ORDER-20250101-0001",
    "SubMerchantName" => "",
    "IsPoolPayment" => 0,
    "IsPreAuth" => 0,
    "IsTokenized" => 0,
    "IntegratorId" => 0,
    "Software" => "Postman",
    "Description" => "",
    "ReturnHash" => 1,
    "RedirectUrl" => "https://www.unitedpayment.ge/callback?trx=ORDER-20250101-0001",
    "RedirectType" => 0,
    "BuyerInformation" => [
        "BuyerFullName" => "Test User",
        "BuyerGsmNumber" => "5341234567",
        "BuyerEmail" => "email@email.com",
        "BuyerAddress" => "Levent Mah. Meltem Sok...",
    ],
    "CustomerInformation" => [
        "DealerCustomerId" => "",
        "CustomerCode" => "1234",
        "FirstName" => "Test",
        "LastName" => "User",
        "Email" => "test@unitedpayment.ge",
        "CardName" => "My Card"
    ]
]);

Get Payments

$client->payments()->all([
    "PaymentStartDate" => "2025-10-01 00:00",
    "PaymentEndDate" => "2025-11-01 00:00"
]);

Refund Service

Create Refund

$client->refunds()->create([
    "VirtualPosOrderId" => "ORDER-20250101-0001",
    "OtherTrxCode" => "REFUND-20250101-0001",
    "Amount" => 14.25
]);

Card Service

Get Cards

$client->cards()->all([
    "DealerCustomerId" => "",
    "CustomerCode" => "1234"
]);

Create Card

$client->cards()->create([
    "DealerCustomerId" => "",
    "CustomerCode" => "1234",
    "CardHolderFullName" => "Test User",
    "CardNumber" => "4111111111111111",
    "ExpMonth" => "12",
    "ExpYear" => "2026",
    "CardName" => "My Card"
]);

Retrieve Card

$client->cards()->retrieve([
    "CardToken" => "63F8C2BF-F76D-46C1-BB0E-C699692CB678"
]);

Update Card

$client->cards()->update([
    "CardToken" => "63F8C2BF-F76D-46C1-BB0E-C699692CB678",
    "CardName" => "Updated Card Name"
]);

Delete Card

$client->cards()->delete([
    "CardToken" => "63F8C2BF-F76D-46C1-BB0E-C699692CB678"
]);

moka-united/moka-united-ge-php 适用场景与选型建议

moka-united/moka-united-ge-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 14 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 moka-united/moka-united-ge-php 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-14