AliPay

open class AliPay

支付宝支付

Author

Jenly

Follow me

Constructors

Link copied to clipboard
constructor(activity: Activity)

Types

Link copied to clipboard
interface OnAuthListener
授权监听
Link copied to clipboard
interface OnPayListener
支付监听

Functions

Link copied to clipboard
open fun checkAuth(req: AliAuthReq)
支付宝授权业务检测,因为授权参数与签名加密前内容关联密切,所以强烈建议服务端直接返回拼接后的authInfo,使用checkAuth
open fun checkAuth(authInfo: String)
open fun checkAuth(authInfo: String, listener: AliPay.OnAuthListener)
支付宝账户授权业务检测
Link copied to clipboard
open fun sendReq(req: AliPayReq)
发送支付请求,因为订单参数与签名加密前内容关联密切,所以强烈建议服务端直接返回拼接后的orderInfo,使用sendReq
open fun sendReq(orderInfo: String)
open fun sendReq(orderInfo: String, listener: AliPay.OnPayListener)
发送支付请求;SDK拉起支付宝支付
Link copied to clipboard
设置授权监听
Link copied to clipboard
设置支付监听