-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Description
When updating the key of a component (specifically Google in my case) the component does not update, in the case of Google it means the Component doesn't reset when we cancel meaning the component is stuck in the state of "Processing Payment". In the onError() callback I update the key for the component but the component does not call attach again.
Steps to Reproduce
-
I am able to consistently reproduce this issue: Yes/No
-
Steps to reproduce the issue:
- Create the Google Component
- Click on the component to get the GPay sheet
- Cancel the order
- Update the key used on the component
- No change 🐛
-
Screenshots or a screen recording:
https://github.com/user-attachments/assets/20d04c77-bb6b-4e68-88cd-df0ce9736275
Code Snippets
Provide code snippets where the SDK is implemented in your project.
Example repo: https://github.com/GraduateToaster/AdyenComponentTest
At the bottom of the PaymentViewModel certain keys have been omitted for security reasons.
Integration Information
- Server-side integration: Sessions/Advanced flow
- Client-side integration: Components
- SDK version: 3.14.0
- Android version(s) where issue occurs: tested on Android 12 & 15
- Device model(s) where issue occurs: Pixel & OnePlus
Additional Context
Think the possible solution might be to call attach() on the AndroidView update {} callback to ensure the attach is called on the data changing. Not sure what wider implications this may have. The updated version of this is at the bottom of the PaymentPage in AdyenComponentFix().