alalm3i/edfapay-laravel 问题修复 & 功能扩展

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

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

alalm3i/edfapay-laravel

最新稳定版本:v1.4

Composer 安装命令:

composer require alalm3i/edfapay-laravel

包简介

Laravel's integration with EdfaPay payment gateway

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is an easy way to integrate with EdfaPay and get payment link correctly.

You can find EdfaPay API documentation here

Installation

You can install the package via composer:

composer require alalm3i/edfapay-laravel

You can publish the config file with:

php artisan vendor:publish --tag="edfapay-laravel-config"

This is the contents of the published config file:

return [
    'merchant_key' => env('EDFA_PAY_MERCHANT_KEY', null),
    'merchant_password' => env('EDFA_PAY_PASSWORD', null),
    'return_url' => env('EDFA_PAY_RETURN_URL', null),
];

Usage

 $response = \alalm3i\EdfaPay\Facades\EdfaPay::paymentURL([
        'order_id' => 'a001',
        'order_amount' => '10',
        'order_description' => 'description',
        'payer_first_name' => 'customer',
        'payer_last_name' => 'name',
        'payer_email' => 'nab@eee.com',
        'payer_mobile' => '966565555555',
        'payer_ip_address' => '176.44.76.222',
    ])->generate();
    
//$response = https://pay.edfapay.com/merchant/checkout/.....

This package cover generating the payment link only.

ToDo

  1. Generate payment URL
  2. Handle payment notifications
  3. Handle route for notification webhook

You can extend alalm3i\EdfaPay\EdfaPayNotification class to utilize it as a wrapper with some useful getters for notification callback payload. Just initialize it with the response object received from EdfaPay.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-26