-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [CM-607][Sale Widget] Get order config from product skus + qty #1749
Conversation
25ec148
to
54b7aaf
Compare
tokenAddress, | ||
}: UseSmartCheckoutInput) => { | ||
const amount = '0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ignore this patch
The entire hook gets remove in next PR as is not longer required for multi currency flow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @jhesgodi
5937019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Summary
Improve how primary sales widget gets the quote and configurations for an order. Instead of the widget knowing which
amount
needs to be paid, it can now instead pass the itemssku
&qty
to the/client-config
service, and it will be able to return a response with by item amounts and total amounts including conversions.BREAKING CHANGE:
Requires customers to implement new Quotes endpoint
Screenshots
Before:
After: Multi item with correct pricing conversion
Detail and impact of the change
Added
Changed
amount
paramRemoved
amount
paramFixed