diff --git a/.changeset/mean-glasses-happen.md b/.changeset/mean-glasses-happen.md new file mode 100644 index 00000000..9763e74f --- /dev/null +++ b/.changeset/mean-glasses-happen.md @@ -0,0 +1,5 @@ +--- +'@adyen/adyen-web': patch +--- + +update sessionData after /setup call diff --git a/packages/lib/src/core/CheckoutSession/CheckoutSession.ts b/packages/lib/src/core/CheckoutSession/CheckoutSession.ts index f1f9b66e..7ae2eeb6 100644 --- a/packages/lib/src/core/CheckoutSession/CheckoutSession.ts +++ b/packages/lib/src/core/CheckoutSession/CheckoutSession.ts @@ -67,6 +67,10 @@ class Session { this.configuration = { ...response.configuration }; } + if (response.sessionData) { + this.updateSessionData(response.sessionData); + } + return response; }); }