\serviceRoutineRefund

小程序退款 Class RoutineRefund

Summary

Methods
Properties
Constants
options()
doRefund()
curlGet()
curlPost()
createNonceStr()
arrayToXml()
getSign()
No public properties found
No constants found
formatQueryParaMap()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

options()

options() 

doRefund()

doRefund(float  $totalFee, float  $refundFee, string  $refundNo, string  $wxOrderNo = '', string  $orderNo = '', string  $refundDesc = '') : string

退款

Parameters

float $totalFee

订单金额 单位元

float $refundFee

退款金额 单位元

string $refundNo

退款单号

string $wxOrderNo

微信订单号

string $orderNo

商户订单号

string $refundDesc

退款原因

Returns

string

curlGet()

curlGet(  $url = '',   $options = array()) 

Parameters

$url
$options

curlPost()

curlPost(  $url = '',   $postData = '',   $options = array()) 

Parameters

$url
$postData
$options

createNonceStr()

createNonceStr(  $length = 16) 

Parameters

$length

arrayToXml()

arrayToXml(  $arr) 

Parameters

$arr

getSign()

getSign(  $params,   $key) 

Parameters

$params
$key

formatQueryParaMap()

formatQueryParaMap(  $paraMap,   $urlEncode = false) 

Parameters

$paraMap
$urlEncode