Package com.adyen.checkout.wechatpay
Class WeChatPayActionComponent
-
- All Implemented Interfaces:
-
com.adyen.checkout.components.core.internal.ActionComponent,com.adyen.checkout.components.core.internal.Component,com.adyen.checkout.components.core.internal.IntentHandlingComponent,com.adyen.checkout.components.core.internal.ResultHandlingComponent,com.adyen.checkout.ui.core.internal.ui.ViewableComponent
public final class WeChatPayActionComponent extends ViewModel implements ActionComponent, IntentHandlingComponent, ViewableComponent
An ActionComponent that is able to handle the 'sdk' action.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ActionComponentProvider<WeChatPayActionComponent, WeChatPayActionConfiguration, WeChatDelegate>PROVIDERprivate final Flow<ComponentViewType>viewFlowprivate final WeChatDelegatedelegate
-
Method Summary
Modifier and Type Method Description Flow<ComponentViewType>getViewFlow()WeChatDelegategetDelegate()UnithandleIntent(Intent intent)Pass the result Intent from the WeChatPay SDK response on Activity#onNewIntent(Intent). BooleancanHandleAction(Action action)UnithandleAction(Action action, Activity activity)-
-
Method Detail
-
getViewFlow
Flow<ComponentViewType> getViewFlow()
-
getDelegate
WeChatDelegate getDelegate()
-
handleIntent
Unit handleIntent(Intent intent)
Pass the result Intent from the WeChatPay SDK response on Activity#onNewIntent(Intent). You can check if the Intent is correct by calling WeChatPayUtils.isResultIntent
- Parameters:
intent- The intent result from WeChatPay SDK.
-
canHandleAction
Boolean canHandleAction(Action action)
-
handleAction
Unit handleAction(Action action, Activity activity)
-
-
-
-