Weixin
in package
微信支付 支付方式 //JSAPI--JSAPI支付(或小程序支付)、NATIVE--Native支付、APP--app支付,MWEB--H5支付, 使用composer: https://easywechat.com/6.x/pay/index.html 微信官方: https://pay.weixin.qq.com/wiki/doc/apiv3/index.shtml
Table of Contents
Properties
- $app : mixed
- $appid : mixed
- $cert_path : mixed
- $config : mixed
- $currency : mixed
- $key_path : mixed
- $orderObj : mixed
- $shop_id : mixed
- $wxpay_plat_path : mixed
- $notify_url : mixed
Methods
- __construct() : mixed
- 初始
- common() : mixed
- JSAPI下单 jsapi native h5 app
- h5() : void
- H5 下单
- init() : mixed
- jsapi() : void
- Native 下单
- native() : void
- Native 下单
- notify() : mixed
- 支付异步通知
- query() : mixed
- refund() : mixed
- 退款 totalFee 总金额 refundFee 退款金额 https://easywechat.com/6.x/pay/examples.html https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_9.shtml
- refundQuery() : mixed
- 退款查寻 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_10.shtml
- transfer() : mixed
- 企业付款到零钱 不是 【企业转帐到零钱】 这是两个产品,新开的微信支付只有 企业付款到零钱。
- create_pem() : mixed
Properties
$app
public
mixed
$app
$appid
public
mixed
$appid
$cert_path
public
mixed
$cert_path
$config
public
mixed
$config
$currency
public
mixed
$currency
= "CNY"
$key_path
public
mixed
$key_path
$orderObj
public
mixed
$orderObj
$shop_id
public
mixed
$shop_id
$wxpay_plat_path
public
mixed
$wxpay_plat_path
$notify_url
protected
mixed
$notify_url
Methods
__construct()
初始
public
__construct([mixed $appid = null ]) : mixed
Parameters
- $appid : mixed = null
common()
JSAPI下单 jsapi native h5 app
public
common([mixed $req = ['openid' => '', 'body' => '', 'total_fee' => '', 'order_num' => '', 'trade_type' => 'NATIVE'] ][, mixed $pay_drive = 'jsapi' ]) : mixed
Parameters
- $req : mixed = ['openid' => '', 'body' => '', 'total_fee' => '', 'order_num' => '', 'trade_type' => 'NATIVE']
- $pay_drive : mixed = 'jsapi'
h5()
H5 下单
public
h5([array<string|int, mixed> $req = [] ]) : void
Parameters
- $req : array<string|int, mixed> = []
init()
public
init() : mixed
jsapi()
Native 下单
public
jsapi([array<string|int, mixed> $req = [] ]) : void
Parameters
- $req : array<string|int, mixed> = []
native()
Native 下单
public
native([array<string|int, mixed> $req = [] ]) : void
Parameters
- $req : array<string|int, mixed> = []
notify()
支付异步通知
public
notify() : mixed
query()
public
query(mixed $outTradeNo) : mixed
Parameters
- $outTradeNo : mixed
refund()
退款 totalFee 总金额 refundFee 退款金额 https://easywechat.com/6.x/pay/examples.html https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_9.shtml
public
refund(mixed $out_trade_no, mixed $total_fee, mixed $refund_amount[, mixed $refund_desc = '退款' ]) : mixed
Parameters
- $out_trade_no : mixed
- $total_fee : mixed
- $refund_amount : mixed
- $refund_desc : mixed = '退款'
refundQuery()
退款查寻 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_10.shtml
public
refundQuery(mixed $out_refund_no) : mixed
Parameters
- $out_refund_no : mixed
transfer()
企业付款到零钱 不是 【企业转帐到零钱】 这是两个产品,新开的微信支付只有 企业付款到零钱。
public
transfer(mixed $openid, mixed $order_num[, mixed $amount = 0.01 ][, mixed $desc = '测试' ]) : mixed
Parameters
- $openid : mixed
- $order_num : mixed
- $amount : mixed = 0.01
- $desc : mixed = '测试'
create_pem()
protected
create_pem(mixed $content, mixed $top) : mixed
Parameters
- $content : mixed
- $top : mixed