Skip to content

Commit

Permalink
Merge pull request #2504 from Adyen/feature/update_sessionData_after_…
Browse files Browse the repository at this point in the history
…setup

Update sessionData after /setup call
  • Loading branch information
sponglord authored Jan 3, 2024
2 parents a597582 + c28c325 commit b6f2a2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-glasses-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@adyen/adyen-web': patch
---

update sessionData after /setup call
4 changes: 4 additions & 0 deletions packages/lib/src/core/CheckoutSession/CheckoutSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ class Session {
this.configuration = { ...response.configuration };
}

if (response.sessionData) {
this.updateSessionData(response.sessionData);
}

return response;
});
}
Expand Down

0 comments on commit b6f2a2d

Please sign in to comment.