\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(mixed  $productId) : mixed

生成扫描支付URL,模式一

Parameters

mixed $productId

Returns

mixed —

GetPayUrl()

GetPayUrl(\UnifiedOrderInput  $input) : mixed

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

Parameters

\UnifiedOrderInput $input

Returns

mixed —

ToUrlParams()

ToUrlParams(array  $urlObj) : mixed

参数数组转换为url参数

Parameters

array $urlObj

Returns

mixed —