-
- All Implemented Interfaces:
-
com.adyen.checkout.components.ActionComponent,com.adyen.checkout.components.Component,com.adyen.checkout.components.base.IntentHandlingComponent,com.adyen.checkout.components.base.ResultHandlingComponent
public class WeChatPayActionComponent extends BaseActionComponent<WeChatPayActionConfiguration> implements IntentHandlingComponent
-
-
Field Summary
Fields Modifier and Type Field Description public final static ActionComponentProvider<WeChatPayActionComponent, WeChatPayActionConfiguration>PROVIDER
-
Constructor Summary
Constructors Constructor Description WeChatPayActionComponent(SavedStateHandle savedStateHandle, Application application, WeChatPayActionConfiguration configuration)
-
Method Summary
Modifier and Type Method Description voidhandleIntent(@NotNull() Intent intent)Pass the result Intent from the WeChatPay SDK response on Activity#onNewIntent(Intent). booleancanHandleAction(@NonNull() Action action)-
Methods inherited from class com.adyen.checkout.components.base.BaseActionComponent
handleAction, observe, observeErrors, removeErrorObserver, removeErrorObservers, removeObserver, removeObservers, restoreState, saveState -
Methods inherited from class com.adyen.checkout.components.base.lifecycle.ActionComponentViewModel
getConfiguration, getSavedStateHandle -
Methods inherited from class androidx.lifecycle.AndroidViewModel
getApplication -
Methods inherited from class androidx.lifecycle.ViewModel
addCloseable -
Methods inherited from class com.adyen.checkout.components.ActionComponent
canHandleAction -
Methods inherited from class com.adyen.checkout.components.base.IntentHandlingComponent
handleIntent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
WeChatPayActionComponent
WeChatPayActionComponent(SavedStateHandle savedStateHandle, Application application, WeChatPayActionConfiguration configuration)
-
-
Method Detail
-
handleIntent
void handleIntent(@NotNull() 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 isResultIntent
- Parameters:
intent- The intent result from WeChatPay SDK.
-
canHandleAction
boolean canHandleAction(@NonNull() Action action)
-
-
-
-