kataki/syber-pay
Composer 安装命令:
composer require kataki/syber-pay
包简介
This package is simple way to integrate syber pay online payment sulotion on your laravel api
README 文档
README
This Package Will Help You Integrate Syber Pay Payment Gateway In Your Laravel Api To Support Payment On Mobile Applications
Installation :
$ composer require kataki/syber-pay $ php artisan Syber_pay:install
open the .env file and add these lines :
syberpayURL="https://syberpay.test.sybertechnology.com/syberpay/" applicationId="0000000132" serviceId="009001000106" salt="l3emxga9b" key="y5lgm6rxq" middleware="null" order_model="Ticket" //the model of your appication order be sure that the table is the same order name followed with 's'. order_price_column="price_value" //the column name on your appication order table which has the price that the customer should pay order_payment_status_column="ticket_status" //the column name on your appication order table indecate if the order is payed or not 2= payed customer_name_column="name" //the column name on your appication customers table that save the customer name (not required) success_message="payment done" error_message="payment error" cancel_message="payment canceled" success_view="syber-pay::success" error_view="syber-pay::cancel" cancel_view="syber-pay::cancel"
##Test card
pan=7888450004340823 pin=0000
##That will automaticlly generate the needed api that syber company would require :
(post)example.com/api/transactions/syber/payment //trigerd by the mobile div and require parameter (order_id)
(post)example.com/api/transactions/syber/notify //trigerd by syber company and will check if the payment proccess done and update you
(post)example.com/api/transactions/syber/return //trigerd by syber company and will retrun animation redirect page show message and the payment status
(post)example.com/api/transactions/syber/cancel #trigerd by syber company will retrun animation redirect page show message and the payment is canceled
##Example Request :
post::example.com/api/transactions/syber/payment?order_id=1
##Example response :
https://syberpay.test.sybertechnology.com:443/syberpay/payment/1917b617-8659-414e-a751-a5cc42078b47
###it also generate payment model and table :
payment table(
bigInteger('id')->unique(),
string('transaction_id')->unique(),
bigInteger('order_id'),
integer('customer_id'),
string('hash'),
string('note')->nullable,
string('payment_method'),/// syber integer('status'),///0=notvalid or pendding, 1=done
string('type')->default('1'),///1=order payment
)
License :
MIT
kataki/syber-pay 适用场景与选型建议
kataki/syber-pay 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 49 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 11 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 kataki/syber-pay 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kataki/syber-pay 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 49
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-21