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
- Server-side integration: Advanced flow
- Client-side integration: Components
- SDK version: 5.9.1
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:
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
ActionComponentDatain theonAdditionalDetailscallback, 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