定制 baselrabia/paytabs-with-laravel 二次开发

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

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

baselrabia/paytabs-with-laravel

Composer 安装命令:

composer require baselrabia/paytabs-with-laravel

包简介

integrate paytabs with laravel

README 文档

README

Issues Stars Latest Version Software License Total Downloads

paytabs Logo

Happy Logo

Paytabs With Laravel🥳

Installation

Begin by installing this package through Composer. Just run following command to terminal-

composer require baselrabia/paytabs-with-laravel

Once this operation completes the package will automatically be discovered for Laravel 5.6 and above,

  • Run this line to publish package files in your app
php artisan vendor:publish --provider="Basel\Paytabs\PaytabsServiceProvider"
  • after that fire the migration command
php artisan migrate
  • last step add those two fields in your .env file ,edit it's value with your own
merchant_email=**************@gmail.com
merchant_secretKey=****************************************************************

And make sure to change your APP_URL

APP_URL=http://localhost:8000

Otherwise, the final step is to add the service provider. Open config/app.php, and add a new item to the providers array.

'providers' => [
	...
	Basel\Paytabs\PaytabsServiceProvider::class,
],
  • Now add the Aliase
'aliases' => [
	...
	'Paytabs' => Basel\Paytabs\Facades\PaytabsFacade::class,

],

what's happining there:

the package publish 3 files

1- App/Http/Controllers/PaytabsController.php
2- App/Models/PaytabsInvoice.php
3- config/paytabs.php
  • you are free to change what you want in the logic of these files {{ Without Deleteing 🧐}}
  • the result of success payment will process making a paytabs invoice through the model App/Models/PaytabsInvoice.php
  • the config file have differnt values for response languague, currancy, email and secert_key

the package has 2 routes

Create Payment Page:

http://localhost:8000/paytabs_payment

which call the function ( PaytabsController@index ) by GET Request

Verify Payment:

http://localhost:8000/paytabs_response

the return response from paytabs which call the function ( PaytabsController@response ) by Post Request

test card:

Checkout Process Demo

Please use these ‘test card’ details for your demo

Name on Card:  John Doe
Card Number:  4000 0000 0000 0051
Expiry:  02/22  CVV:  111

the link for any updates => https://site.paytabs.com/en/checkout-process-demo/

Contributing

If you think something important is missing or should be different based on your experience, I'd love to hear it! If you have suggestions for improving this package, open an issue with your suggestion.

How to Contribute 💪

- Fork the project 

- Create a new branch with your changes:
$ git checkout -b my-feature

- Save your changes and create a commit message telling you what you did:
$ git commit -m "feature: My new feature"

- Submit your changes:
$ git push origin my-feature

License 📝

This repository is under MIT license. You can see the LICENSE file for more details. 😉

This project was developed with ❤️ by @Basel Rabia
If it helped you, give it ⭐, it will help me too 😉

Linkedin Badge

baselrabia/paytabs-with-laravel 适用场景与选型建议

baselrabia/paytabs-with-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.34k 次下载、GitHub Stars 达 38, 最近一次更新时间为 2021 年 01 月 25 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 baselrabia/paytabs-with-laravel 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 38
  • Watchers: 3
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-25