Skip to content

More info in case of unsuccessful Twint SDK payment #2029

@ingridsgit

Description

@ingridsgit

Description

We are using the Android Components integration, with the advanced flow, for the Twint SDK payment method (one time payments).
SDK v5.9.1 (also tried with 5.8.0)
Checkout API v71

Here is the component configuration:

TwintActionComponent.PROVIDER.get(
    activity = appCompatActivity,
    configuration = TwintActionConfiguration.Builder(
        environment = AdyenEnvironment.getEnvironment(),
        clientKey = BuildConfig.ADYEN_KEY
    )
        .build(),
    callback = actionCallback
)

The happy path is working fine, however, when the payment is not finalised on the Twint app, we lack information about what went wrong (in case of insufficient funds for example or if the user cancels the transaction): the onError(componentError: ComponentError) callback is always triggered with ComponentException("Twint encountered an error.”)

Is there a way we could have access to the ActionComponentData in the onAdditionalDetails callback, so we can use it to make a POST /payments/details request?

For example, in the case where the token provided to the Twint app is invalid, we get the expected flow : the transaction is not finalised on the Twint app, we receive the details in onAdditionalDetails (no error), and we can use it to make a POST /payments/details request (which will return the resultCode "Cancelled")

Thanks for your help

Integration Information

  1. Server-side integration: Advanced flow
  2. Client-side integration: Components
  3. SDK version: 5.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIndicates a new feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions