PayUtils class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init({required String appId, String? universalLink})
→ void
-
appId
微信appId
universalLink
for ios wechat
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pay({required String partnerId, required String prepayId, required String nonceStr, required String timeStamp, required String sign, dynamic successCall(int code, String prePayId)?, dynamic failCall(int errorCode, String prePayId)?})
→ void
-
微信支付
partnerId
商户id
prepayId
预支付id(由后端调预支付API返回)
nonceStr
随机串(由后端返回)
timeStamp
时间戳(由后端返回)
sign
签名
successCall
微信成功回调,code:0-支付中;1-支付成功;
failCall
微信失败回调,errorCode:0-发送支付请求失败;1-支付失败;2-请升级微信客户端;3-未安装客户端;4-用户取消;
-
toString()
→ String
-
A string representation of this object.
inherited