v2.0.0
What's Changed
💥 Breaking Change
- Rename
returnUrl
toorderReturnUrl
by @marcomontalbano in #39
🚀 Enhancement
- Integrate with Commerce Layer's Identity and My Account by @marcomontalbano in #35
- Add comments to
@Prop
and generate docs based on them by @marcomontalbano in #37 - Update all dependencies to the latest by @marcomontalbano in #40
📝 Documentation
- Update documentation for Identity and My account by @sfiorucci in #38
Full Changelog: v1.4.0...v2.0.0-beta.0
Breaking Changes
Rename returnUrl
to orderReturnUrl
<script>
(function() {
window.commercelayerConfig = {
clientId: 'kuSKPbeKbU9LG9LjndzieKWRcfiXFuEfO0OYHXKH9J8',
slug: 'drop-in-js',
scope: 'market:11709',
- returnUrl: 'https://example.com'
+ orderReturnUrl: 'https://example.com'
}
}());
</script>
The accessToken
stored in the cookie has changed
If you were using the accessToken
stored in the cookie, you need to know that the cookie value is now a JSON.stringified object.
Below is an example:
{
"type": "guest",
"accessToken": "eyJhbGciOiJIUzUxMiJ9...",
"scope": "market:11709"
}