Skip to content

Commit

Permalink
GooglePay adds origin to state.data (#2690)
Browse files Browse the repository at this point in the history
  • Loading branch information
sponglord committed May 17, 2024
1 parent 5c6bea0 commit 37705ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/grumpy-worms-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@adyen/adyen-web": patch
---

GooglePay adds origin to state.data
3 changes: 2 additions & 1 deletion packages/lib/src/components/GooglePay/GooglePay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class GooglePay extends UIElement<GooglePayProps> {
type: this.props.type ?? GooglePay.type,
...this.state
},
browserInfo: this.browserInfo
browserInfo: this.browserInfo,
origin: !!window && window.location.origin
};
}

Expand Down

0 comments on commit 37705ce

Please sign in to comment.