\yeepay

易宝接口类

Summary

Methods
Properties
Constants
yeepay()
__construct()
SetReturnUrl()
GetCode()
respond()
getReqHmacString()
getCallBackValue()
CheckHmac()
getCallbackHmacString()
HmacMd5()
success_db()
success_mem()
log_result()
$dsql
$mid
$p0_Cmd
$p9_SAF
$reqURL_onLine
$return_url
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$dsql

$dsql : 

Type

$mid

$mid : 

Type

$p0_Cmd

$p0_Cmd : 

Type

$p9_SAF

$p9_SAF : 

Type

$reqURL_onLine

$reqURL_onLine : 

Type

$return_url

$return_url : 

Type

Methods

yeepay()

yeepay() : void

构造函数

__construct()

__construct() 

SetReturnUrl()

SetReturnUrl(string  $returnurl = '') : void

设定接口会送地址

例如: $this->SetReturnUrl($cfg_basehost."/tuangou/control/index.php?ac=pay&orderid=".$p2_Order)

Parameters

string $returnurl

会送地址

GetCode()

GetCode(array  $order, array  $payment) 

生成支付代码

Parameters

array $order

订单信息

array $payment

支付方式信息

respond()

respond() 

响应操作

getReqHmacString()

getReqHmacString(  $p1_MerId,   $merchantKey,   $p2_Order,   $p3_Amt,   $p4_Cur,   $p5_Pid,   $p6_Pcat,   $p7_Pdesc,   $p8_Url,   $pa_MP,   $pd_FrpId,   $pr_NeedResponse) 

Parameters

$p1_MerId
$merchantKey
$p2_Order
$p3_Amt
$p4_Cur
$p5_Pid
$p6_Pcat
$p7_Pdesc
$p8_Url
$pa_MP
$pd_FrpId
$pr_NeedResponse

getCallBackValue()

getCallBackValue(  $r0_Cmd,   $r1_Code,   $r2_TrxId,   $r3_Amt,   $r4_Cur,   $r5_Pid,   $r6_Order,   $r7_Uid,   $r8_MP,   $r9_BType,   $hmac) 

Parameters

$r0_Cmd
$r1_Code
$r2_TrxId
$r3_Amt
$r4_Cur
$r5_Pid
$r6_Order
$r7_Uid
$r8_MP
$r9_BType
$hmac

CheckHmac()

CheckHmac(  $p1_MerId,   $merchantKey,   $r0_Cmd,   $r1_Code,   $r2_TrxId,   $r3_Amt,   $r4_Cur,   $r5_Pid,   $r6_Order,   $r7_Uid,   $r8_MP,   $r9_BType,   $hmac) 

Parameters

$p1_MerId
$merchantKey
$r0_Cmd
$r1_Code
$r2_TrxId
$r3_Amt
$r4_Cur
$r5_Pid
$r6_Order
$r7_Uid
$r8_MP
$r9_BType
$hmac

getCallbackHmacString()

getCallbackHmacString(  $p1_MerId,   $merchantKey,   $r0_Cmd,   $r1_Code,   $r2_TrxId,   $r3_Amt,   $r4_Cur,   $r5_Pid,   $r6_Order,   $r7_Uid,   $r8_MP,   $r9_BType) 

Parameters

$p1_MerId
$merchantKey
$r0_Cmd
$r1_Code
$r2_TrxId
$r3_Amt
$r4_Cur
$r5_Pid
$r6_Order
$r7_Uid
$r8_MP
$r9_BType

HmacMd5()

HmacMd5(  $data,   $key,   $lang = 'utf-8') 

Parameters

$data
$key
$lang

success_db()

success_db(  $order_sn) 

Parameters

$order_sn

success_mem()

success_mem(  $order_sn,   $pname,   $product,   $pid) 

Parameters

$order_sn
$pname
$product
$pid

log_result()

log_result(  $word) 

Parameters

$word