**What** Only use `setPaymentSessionsBatch` in `setPaymentSession` to reuse the logic as it is the same behavior. One for a unique session and the other one for multiple sessions. This refactoring reduce the risk of introducing bugs when working around payment session if it needs to be changed (which is currently happening as part of the payment refactoring) and having to change it in less places instead of more and more places
88 B
88 B
@medusajs/medusa
| @medusajs/medusa |
|---|
| patch |
chore: refactor payment collection setPaymentSession