UnionPay

open class UnionPay(context: Context)

银联支付

Author

Jenly

Follow me

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface OnPayListener

银联支付监听

Functions

Link copied to clipboard
fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)

Activity 中的 onActivityResult 方法中调用此方法,来接收支付结果监听回调

Link copied to clipboard
fun sendReq(orderInfo: String, serverMode: String)
fun sendReq(orderInfo: String, serverMode: String, listener: UnionPay.OnPayListener)

发送支付请求;

Link copied to clipboard

设置支付监听;记得在 Activity 中的 onActivityResult 方法中调用 UnionPay.onActivityResult 方法,这样设置的支付监听才会被触发。