定制 yahrdy/aamarpay 二次开发

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

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

yahrdy/aamarpay

Composer 安装命令:

composer require yahrdy/aamarpay

包简介

Laravel package for aamarpay payment gateway

README 文档

README

Laravel aamarpay is a laravel package for aamarpay payment gateway.

Installation

You can install the package via composer:

composer require yahrdy/aamarpay

You can publish the config file with:

php artisan vendor:publish --tag="aamarpay-config"

This is the contents of the published config file:

return [
    'url' => env('AAMARPAY_SERVER_URL', 'https://sandbox.aamarpay.com/request.php'),
    'verify_url' => env('AAMARPAY_VERIFY_URL', 'https://sandbox.aamarpay.com/api/v1/trxcheck/request.php'),
    'store_id' => env('AAMARPAY_STORE_ID', 'aamarpaytest'),
    'signature_key' => env('AAMARPAY_SIGNATURE_KEY', 'dbb74894e82415a2f7ff0ec3a97e4183'),
    'success_url' => env('AAMARPAY_SUCCESS_URL', 'http://localhost:8000/api/verify'),
    'cancel_url' => env('AAMARPAY_CANCEL_URL', 'http://localhost:8000/api/verify'),
    'fail_url' => env('AAMARPAY_FAIL_URL', 'http://localhost:8000/api/verify'),
];

Usage

// Use the facade to initiate a payment, it will return a redirect url
public function checkout(){
        return Aamarpay::checkout($amount, $name, $address, $phone, $value1 = null, $value2 = null, $value3 = null, $value4 = null);
    }

// To verify the payment, keep the redirect post parameter in the request
// This will return a json response with the payment information
public function verify(Request $request){
        return Aamarpay::verify($request);
    }

Changelog

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

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-20