-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
chore(medusa,core-flows): cart payment collection link #8457
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
|
@@ -1280,15 +1269,15 @@ medusaIntegrationTestRunner({ | |||
|
|||
const paymentCollection = | |||
await paymentModule.createPaymentCollections({ | |||
amount: 5000, | |||
amount: 5001, |
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.
Changed here to test when the value has changed.
if the amount and currency_code are the same, the payment collection isn't updated and the session isn't deleted.
) | ||
|
||
refreshPaymentCollectionForCartWorkflow.runAsStep({ |
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.
moved outside the parallel step as operations there can affect Cart totals.
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.
Added some comments, overall lgtm! Would recco a second pair of eyes as well.
packages/core/core-flows/src/definition/cart/workflows/refresh-payment-collection.ts
Show resolved
Hide resolved
packages/core/core-flows/src/definition/cart/workflows/update-line-item-in-cart.ts
Outdated
Show resolved
Hide resolved
/snapshot-this |
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.
Nice!
No description provided.