emilmassey/payum-tpay

Payum 扩展。它提供了 Tpay 支付集成。

1.1.0 2021-06-16 16:21 UTC

This package is auto-updated.

Last update: 2024-09-16 23:35:59 UTC


README

Payum 扩展。它提供了 Tpay 支付集成。

安装

只需运行 composer require emilmassey/payum-tpay "^1.1"

config.php

<?php
//config.php

use Payum\Core\PayumBuilder;
use Payum\Core\Payum;

/** @var Payum $payum */
$payum = (new PayumBuilder())
    ->addDefaultStorages()

    ->addGateway('gatewayName', [
        'factory' => 'tpay',
        'merchant_id'  => 'change it',
        'secret' => 'change it',
        'api_key'  => 'change it',
        'api_password' => 'change it',
        'sandbox'   => true,
    ])

    ->getPayum()
;

prepare.php

在这里您需要修改 gatewayName 的值。将其设置为 tpay。其余部分保持与基本 入门 文档中描述的相同。

资源

许可证

扩展基于 MIT 许可证 发布。