定制 wameed/urway-payment-gateway 二次开发

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

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

wameed/urway-payment-gateway

最新稳定版本:v1.1

Composer 安装命令:

composer require wameed/urway-payment-gateway

包简介

laravel package for Urway payment service

README 文档

README

laravel package for urway payment getway

install the package composer require wameed/urway-payment-gateway

You can publish using the following command

php artisan vendor:publish --provider="Wameed\UrwayPaymentGateway\UrwayServiceProvider"

When published, the config/urway.php config file contains:

return [
    'auth' => [
        'terminal_id' => env('URWAY_TERMINAL_ID'),
        'password' => env('URWAY_PASSWORD'),
        'merchant_key' => env('URWAY_MERCHANT_KEY'),
    ],
    'url'=>[
        //change 'payments-dev.urway-tech' to 'payments.urway-tech' when you are ready to go live
        'base'=>env('URWAY_BASE_URL','https://payments-dev.urway-tech.com'),
        'payment'=>env('URWAY_PAYMENT_URL','URWAYPGService/transaction/jsonProcess/JSONrequest'),
    ]
];

send payment data

  $urway = new Urway();

  $urway->setTrackId($trackID)
        ->setAmount($total_after_cal_tax)
        ->setCurrency('SAR')
        ->setCountry('SA')
        ->setAttribute('udf1', 'udf1')
        ->setPaymentPageLanguage('ar')
        ->setAttribute('udf4', 'udf4')
        ->setAttribute('udf5', 'udf5')
        ->setCustomerEmail($request->email)
        ->setRedirectUrl(route('user.payment.verify'));

  $response = $urway->pay();

  $payment_url = $response->getPaymentUrl();

to veriry the payment

        $urway = new Urway();

        $urway->setTrackId(request('TrackId'))
            ->setAmount(request('amount'))
            ->setCurrency('SAR');

        $redirect_url = $urway->verify(request('TranId'));

        return $redirect_url->body();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-23