onAdditionalDetails

abstract fun onAdditionalDetails(actionComponentData: ActionComponentData)

In this method you should make a network call to the /payments/details endpoint of the Checkout API through your server.

We provide inside ActionComponentData the whole request data expected by the /payments/details endpoint. Use ActionComponentData.SERIALIZER to serialize this data to a JSONObject.

You should eventually call sendResult with a DropInServiceResult containing the result of the network request. Drop-in will be updated then based on the DropInServiceResult you sent.

NOTICE: this method runs on the main thread, you should make sure the API call and any other long running operation is made on a background thread.

Only applicable for partial payments flow: in case of a partial payment, you should update Drop-in by calling sendResult with DropInServiceResult.Update.

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

Parameters

actionComponentData

The data from the action component.