fix(medusa-payment-stripe): Added withTransaction to capturePaymentIfNecessary (#3930)
* Added withTransaction to capturePaymentIfNecessary * Removed catch from idempotencyKey.retrieve in completeCartIfNecessary * Synced with upstream develop branch --------- Co-authored-by: Didier Guyon <didierguyon@Didiers-MacBook-Pro.local> Co-authored-by: pepijn-vanvlaanderen <pepijn@webbers.com>
This commit is contained in:
@@ -194,6 +194,7 @@ async function capturePaymentIfNecessary({
|
||||
}) {
|
||||
const orderService = container.resolve("orderService")
|
||||
const order = await orderService
|
||||
.withTransaction(transactionManager)
|
||||
.retrieveByCartId(cartId)
|
||||
.catch(() => undefined)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user