承接 kennebula/dingerpaymentintegration 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

kennebula/dingerpaymentintegration

Composer 安装命令:

composer require kennebula/dingerpaymentintegration

包简介

Payment Integration Services for aya provider

README 文档

README

Requirements

  • PHP >= 8.0;
  • composer;

Features

  • PSR-4 autoloading compliant structure.
  • Easy to use with Laravel framework.
  • Useful tools for better code included.

Installation

composer require kennebula/dingerpaymentintegration

Set Up Tools

Running Command:

php artisan vendor:publish --provider="KenNebula\DingerPaymentIntegration\PackageServiceProvider" --tag="config"

Config Output

return [
    #to fill dinger payment url 
    'url' => null,
    #to fill client id 
    'clientId' => null,
    #to fill public key
    'publicKey' => null,
    #to fill project name
    'projectName' => null,
    #to fill merchant name
    'merchantName' => null,
    #to fill encryption key
    'encryptionKey' => null,
    #to fill call back key
    'callBackKey' => null
];
  • This command will create aya.php file inside config folder like this,

  • Important - You need fill the aya info in this config file for package usage.

Package Usage

Send Payment (to get redirect url) :

use KenNebula\DingerPaymentIntegration\Dinger;

AYA::sendPayment(@multidimensionalArray $items,@String $customer_name, @Int $total_amount, @String $merchant_order_no);
  • Note

  • items array must be include name, amount, quantity.

  • customerName must be string.

  • totalAmount must be integer.

  • merchantOrderId must be string.

Load Output

  • This will generate a dinger prebuild form url.

Extract Callback Data:

use KenNebula\DingerPaymentIntegration\Dinger;

Dinger::callback(@String $paymentResult,@String $checkSum);
  • Note

  • paymentResult must be string.

  • checkSum must be string.

Callback Output

  • This will return decrypted data array include payment information.

License

KenNebula Reserved Since 2024.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-08