\NativePay

刷卡支付实现类

Summary

Methods
Properties
Constants
GetPrePayUrl()
GetPayUrl()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
ToUrlParams()
No private properties found
N/A

Methods

GetPrePayUrl()

GetPrePayUrl(  $productId) 

生成扫描支付URL,模式一

Parameters

$productId

GetPayUrl()

GetPayUrl(\UnifiedOrderInput  $input) 

生成直接支付url,支付url有效期为2小时,模式二

Parameters

\UnifiedOrderInput $input

ToUrlParams()

ToUrlParams(array  $urlObj) 

参数数组转换为url参数

Parameters

array $urlObj