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:
1 file changed
+1
@@ -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