承接 mr4-lc/vietqr 相关项目开发

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

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

mr4-lc/vietqr

Composer 安装命令:

composer require mr4-lc/vietqr

包简介

Laravel VietQR payment (un-official)

README 文档

README

This is a laravel component that integrates [VietQR payment].

  • Get consumer account information from QR Code standard.
  • Create QR Code.

Note:

  • This component don't using VietQR API, this component create QR CODE with EMVco.
  • Data tested with TPBank.

Screenshot

Installation

composer require mr4-lc/vietqr
php artisan vendor:publish --tag=mr4-lc-vietqr --force
php artisan migrate
php artisan vietqr:seed 

Configuration

return [
    'logo' => 'logo.png',
    'defaut' => [
        'transaction_currency' => '704',
        'country_code' => 'VN',
    ],
];

Database

Table vietqr_informations Table vietqr_banks

Usage

<x-mr4-lc.consumer_account_information />
Screenshot 2023-12-03 at 21 03 14
<x-mr4-lc.consumer_account_information id="tpb" />
<input type="text" class="form-control" id="tpb_account">
Screenshot 2023-12-03 at 21 03 25
<x-mr4-lc.consumer_account_information id="tpb2" />
<input type="text" class="form-control" id="tpb2_account">
<img id="tpb2_bank-logo_img" width="128">
Screenshot 2023-12-03 at 21 03 34
<x-mr4-lc.viet-qr />
<x-mr4-lc.viet-qr id="mr4"/>

Screenshot 2023-12-03 at 21 04 47

API:

Request:
{
    "account_id": 1,
    "transaction_amount": 180000,
    "message": "Xin chào",
    "transaction_id": "HD0123456",
}

API: {{host}}api/vietqr

Response:
{
    "code": "00020101021238550010A000000727012500069704230111012345678900208QRIBFTTA530370454061800005802VN62260109HD01234560809Xin chào6304A240"
    "qr": "data:image/png;base64"
}

API: {{host}}api/vietqr_encode

Response:
{
    "code": "00020101021238550010A000000727012500069704230111012345678900208QRIBFTTA530370454061800005802VN62260109HD01234560809Xin chào6304A240"
}
Request:
{
    "data": "00020101021238550010A000000727012500069704230111012345678910208QRIBFTTA530370454061800005802VN62260109HD01234560809Xin chào630496FB"
}

API: {{host}}api/vietqr_detech


Request:
{
    "image": "FILE IMAGE"
}

API: {{host}}api/vietqr_decode

Response:
{
    "data": {
        "account": "01234567891",
        "bank": {
            "id": 10,
            "code": "TPB",
            "bin": "970423",
            "name": "Ngân hàng TMCP Tiên Phong",
            "shortName": "TPBank",
            "logo": "https://api.vietqr.io/img/TPB.png",
            "transferSupported": 1,
            "lookupSupported": 1,
            "support": 3,
            "isTransfer": 1,
            "swift_code": "TPBVVNVX",
            "status": 1,
            "created_at": "2023-11-30T03:55:56.000000Z",
            "updated_at": "2023-11-30T03:55:56.000000Z"
        },
        "serviceCode": {
            "id": 1,
            "name": "account",
            "value": "QRIBFTTA",
            "status": 1,
            "created_at": null,
            "updated_at": null
        },
        "message": "Xin chào",
        "transaction_amount": 180000,
        "transaction_id": "HD0123456",
        "transaction_currency": "704",
        "country_code": "VN",
        "point_of_initiation_method": "12"
    }
}

License

Licensed under The MIT License (MIT).

mr4-lc/vietqr 适用场景与选型建议

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

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

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

围绕 mr4-lc/vietqr 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-27