Skip to content

Commit

Permalink
fix(payment): remove auto set completed_at of payment collection
Browse files Browse the repository at this point in the history
  • Loading branch information
silenaker committed Oct 21, 2024
1 parent 3845077 commit 29aea3f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/modules/payment/src/services/payment-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1077,11 +1077,6 @@ export default class PaymentModuleService
authorized_amount: authorizedAmount,
captured_amount: capturedAmount,
refunded_amount: refundedAmount,
completed_at:
paymentCollection.completed_at ??
(MathBN.gte(netCapturedAmount, paymentCollection.raw_amount)
? new Date()
: null),
},
sharedContext
)
Expand Down

0 comments on commit 29aea3f

Please sign in to comment.