Interface BaseDropInServiceContract

    • Constructor Detail

    • Method Detail

      • onRemoveStoredPaymentMethod

         Unit onRemoveStoredPaymentMethod(StoredPaymentMethod storedPaymentMethod)

        Only applicable to removing stored payment methods. Use DropInConfiguration.Builder.setEnableRemovingStoredPaymentMethods to enable this feature.

        In this method you should make the network call to tell your server to make a call to the DELETE /storedPaymentMethods endpoint. This method is called when the user initiates removing a stored payment method using the remove button.

        We provide storedPaymentMethod that contains the id of the stored payment method to be removed in the field StoredPaymentMethod.id.

        Asynchronous handling: since this method runs on the main thread, you should make sure the DELETE /storedPaymentMethods call and any other long running operation is made on a background thread.

        Use sendRecurringResult to send the final result of this call back to the Drop-in.

        Note that not overriding this method while enabling this feature will cause a MethodNotImplementedException to be thrown.

        See https://docs.adyen.com/api-explorer/ for more information on the API documentation.

      • sendResult

         abstract Unit sendResult(DropInServiceResult result)

        Allows sending the result of the /payments and /payments/details network calls.

        Call this method with a DropInServiceResult depending on the response of the corresponding network call.

        Check the subclasses of DropInServiceResult for more information.

        Parameters:
        result - the result of the network call.
      • onRedirect

         Unit onRedirect()

        Set a callback that will be called when a redirect is made.

      • onBinValue

         Unit onBinValue(String binValue)

        Set a callback that will be called when the bin value changes.

        Parameters:
        binValue - Up to the first 6 or 8 digits of the card number.
      • onBinLookup

         Unit onBinLookup(List<BinLookupData> data)

        Set a callback that will be called when a bin lookup is performed.

        Parameters:
        data - A list of BinLookupData, which contains information about the detected brands.
      • onAddressLookupQueryChanged

         Unit onAddressLookupQueryChanged(String query)

        Set a callback that will be called when shopper inputs a query to perform address lookup.

        Parameters:
        query - Query inputted by shopper.
      • onAddressLookupCompletion

         Boolean onAddressLookupCompletion(LookupAddress lookupAddress)

        Set a callback that will be called when shopper chooses an address option that requires complete details to be provided.

        Parameters:
        lookupAddress - Address option selected by shopper.