Class DropInService

  • All Implemented Interfaces:
    android.content.ComponentCallbacks , android.content.ComponentCallbacks2 , com.adyen.checkout.dropin.BaseDropInServiceContract , com.adyen.checkout.dropin.DropInServiceContract , com.adyen.checkout.dropin.internal.service.BaseDropInServiceInterface , kotlinx.coroutines.CoroutineScope

    
    public abstract class DropInService
    extends BaseDropInService implements DropInServiceContract
                        

    Extend this service to interact with Drop-in and make the required network calls to the Adyen Checkout APIs through your backend.

    Make sure you add your implementation of this service in your manifest file.

    You need to implement the onSubmit and onAdditionalDetails with this service. The rest of the methods are optional.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      DropInService()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit requestPaymentsCall(PaymentComponentState<?> paymentComponentState)
      final Unit requestDetailsCall(ActionComponentData actionComponentData)
      final Unit requestBalanceCall(PaymentComponentState<?> paymentComponentState)
      final Unit requestOrdersCall()
      final Unit requestCancelOrder(OrderRequest order, Boolean isDropInCancelledByUser)
      • Methods inherited from class com.adyen.checkout.dropin.internal.service.BaseDropInService

        getAdditionalData, getCoroutineContext, observeResult, onAddressLookupCompletionCalled, onAddressLookupQueryChangedCalled, onBinLookupCalled, onBinValueCalled, onBind, onCreate, onDestroy, onRebind, onRedirectCalled, onStartCommand, onUnbind, requestRemoveStoredPaymentMethod, sendAddressLookupResult, sendBalanceResult, sendOrderResult, sendRecurringResult, sendResult
      • Methods inherited from class com.adyen.checkout.dropin.BaseDropInServiceContract

        onAddressLookupCompletion, onAddressLookupQueryChanged, onBinLookup, onBinValue, onRedirect, onRemoveStoredPaymentMethod
      • Methods inherited from class com.adyen.checkout.dropin.DropInServiceContract

        onAdditionalDetails, onBalanceCheck, onOrderCancel, onOrderRequest, onSubmit
      • Methods inherited from class android.content.ContextWrapper

        bindIsolatedService, bindService, bindService, bindService, bindService, bindServiceAsUser, bindServiceAsUser, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingOrSelfUriPermissions, checkCallingPermission, checkCallingUriPermission, checkCallingUriPermissions, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, checkUriPermissions, clearWallpaper, createAttributionContext, createConfigurationContext, createContext, createContextForSplit, createDeviceContext, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, createWindowContext, createWindowContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getAttributionSource, getAttributionTag, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDataDir, getDatabasePath, getDeviceId, getDir, getDisplay, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFileStreamPath, getFilesDir, getMainExecutor, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getOpPackageName, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getParams, getResources, getSharedPreferences, getSystemService, getSystemServiceName, getTheme, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, isUiContext, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerComponentCallbacks, registerDeviceIdChangeListener, registerReceiver, registerReceiver, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeSelfPermissionsOnKill, revokeUriPermission, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setTheme, setWallpaper, setWallpaper, startActivities, startActivities, startActivity, startActivity, startForegroundService, startInstrumentation, startIntentSender, startIntentSender, startService, stopService, unbindService, unregisterComponentCallbacks, unregisterDeviceIdChangeListener, unregisterReceiver, updateServiceGroup
      • Methods inherited from class android.content.Context

        bindIsolatedService, getColor, getColorStateList, getDrawable, getString, getString, getSystemService, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, revokeSelfPermissionOnKill, sendBroadcastWithMultiplePermissions
      • Methods inherited from class android.app.Service

        getApplication, getForegroundServiceType, onConfigurationChanged, onLowMemory, onStart, onTaskRemoved, onTimeout, onTrimMemory, startForeground, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait