定制 kataki/syber-pay 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

Issues Stars Forks license releases

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-21