vendor/codeages/biz-order-pay/src/Pay/Payment/LianlianPayGateway.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

namespace Codeages\Biz\Pay\Payment;

use Codeages\Biz\Framework\Service\Exception\AccessDeniedException;
use Codeages\Biz\Framework\Service\Exception\InvalidArgumentException;
use Codeages\Biz\Framework\Util\ArrayToolkit;

class LianlianPayGateway extends AbstractGateway
{
//    protected $url = 'https://yintong.com.cn/payment/bankgateway.htm';
//    protected $wapUrl = 'https://yintong.com.cn/llpayh5/payment.htm';

    protected $url = 'https://cashier.lianlianpay.com/payment/bankgateway.htm';
    protected $wapUrl = 'https://wap.lianlianpay.com/payment.htm';

    protected $isWap = false;

    public function createTrade($data)
    {
        if (!ArrayToolkit::requireds($data, array(
            'goods_title',
            'goods_detail',
            'attach',
            'trade_sn',
            'amount',
            'notify_url',
            'return_url',
            'create_ip',
        ))) {
            throw new InvalidArgumentException('trade args is invalid.');
        }

        $platformType = empty($data['platform_type']) ? 'Web' : $data['platform_type'];

        if ($platformType == 'Wap') {
            $this->url = $this->wapUrl;
            $this->isWap = true;
        }

        $data = $this->convertParams($data);
        return array(
            'url' => $this->url.'?'.http_build_query($data),
            'data' => $data
        );
    }

    public function converterNotify($data)
    {
        $data = ArrayToolkit::parts($data, array(
            'oid_partner',
            'sign_type',
            'sign',
            'dt_order',
            'no_order',
            'oid_paybill',
            'money_order',
            'result_pay',
            'settle_date',   //此属性出账日期,用于对账用,对账时才能返回付款时间或退款时间
            'info_order',

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。