易商户PHP网站收款SDK

  • 易商户SDK PHP版

https://github.com/Qsnh/eshanghu

  • 用法

创建订单

<?php
require_once '../vendor/autoload.php';
$config = require_once '../eshanghu.php';
$eshanghu = new \Eshanghu\Eshanghu($config);
$outTradeNo = 'A123123';
$subject = '商品名称';
$totalFee = 1; // 单位:分
$extra = 'diy your self';
$response = $eshanghu->create($outTradeNo, $subject, $totalFee, $extra);

查询订单

<?php
require_once '../vendor/autoload.php';
$config = require_once '../eshanghu.php';
$eshanghu = new \Eshanghu\Eshanghu($config);
$outTradeNo = 'A123123123123';
$response = $eshanghu->queryUseOutTradeNo($outTradeNo);
var_dump($response);

composer安装

composer require qsnh/eshanghu-pay

results matching ""

    No results matching ""