WeChatPayReflectionHelper

Interface to call WeChatPay SDK through reflection.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Creates a proxy object for "com.tencent.mm.opensdk.openapi.IWXAPIEventHandler".

Link copied to clipboard
abstract fun createPayReq(weChat: WeChat): Any

Creates a "com.tencent.mm.opensdk.modelpay.PayReq" object from WeChat object.

Link copied to clipboard
abstract fun createWXAPI(context: Context): Any

Creates a "com.tencent.mm.opensdk.openapi.IWXAPI" instance.

Link copied to clipboard
abstract fun getRespErrorCode(payResp: Any): Int

Gets the errorCode from a "com.tencent.mm.opensdk.modelpay.PayResp" object.

Link copied to clipboard
abstract fun handleIntent(weChatApi: Any, intent: Intent?, iWXAPIEventHandler: Any): Boolean

Handles a Intent through a "com.tencent.mm.opensdk.openapi.IWXAPIEventHandler" instance.

Link copied to clipboard

Checks if WECHAT_PAY_GRADLE_DEP dependency available.

Link copied to clipboard
abstract fun registerApp(iWxApi: Any, appId: String?): Boolean

Registers the appId through a "com.tencent.mm.opensdk.openapi.IWXAPI" instance.

Link copied to clipboard
abstract fun sendReq(iWxApi: Any, baseReq: Any): Boolean

Sends a "com.tencent.mm.opensdk.modelbase.BaseReq" through a "com.tencent.mm.opensdk.openapi.IWXAPI" instance.