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:
co-authored by
Didier Guyon
pepijn-vanvlaanderen
parent
a91987fab3
commit
186b7d2773
@@ -194,6 +194,7 @@ async function capturePaymentIfNecessary({
|
|||||||
}) {
|
}) {
|
||||||
const orderService = container.resolve("orderService")
|
const orderService = container.resolve("orderService")
|
||||||
const order = await orderService
|
const order = await orderService
|
||||||
|
.withTransaction(transactionManager)
|
||||||
.retrieveByCartId(cartId)
|
.retrieveByCartId(cartId)
|
||||||
.catch(() => undefined)
|
.catch(() => undefined)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user