@@ -503,9 +503,9 @@ export const handleCreatePayment = async (ctPayment: Payment): Promise<Controlle
503
503
logger . debug ( `SCTM - handleCreatePayment - Calculating total surcharge amount` ) ;
504
504
const surchargeAmountInCent = pricingConstraint
505
505
? roundSurchargeAmountToCent (
506
- calculateTotalSurchargeAmount ( ctPayment , pricingConstraint . surchargeCost ) ,
507
- ctPayment . amountPlanned . fractionDigits ,
508
- )
506
+ calculateTotalSurchargeAmount ( ctPayment , pricingConstraint . surchargeCost ) ,
507
+ ctPayment . amountPlanned . fractionDigits ,
508
+ )
509
509
: 0 ;
510
510
511
511
const paymentParams = createMollieCreatePaymentParams (
@@ -633,7 +633,7 @@ export const handleCreateRefund = async (ctPayment: Payment): Promise<Controller
633
633
transaction . type === CTTransactionType . Charge &&
634
634
transaction . state === CTTransactionState . Success &&
635
635
transaction . interactionId ===
636
- initialRefundTransaction ?. custom ?. fields [ CustomFields . transactions . fields . molliePaymentIdToRefund . name ] ,
636
+ initialRefundTransaction ?. custom ?. fields [ CustomFields . transactions . fields . molliePaymentIdToRefund . name ] ,
637
637
) ;
638
638
} else {
639
639
logger . debug ( 'SCTM - handleCreateRefund - creating a refund for the latest success charge transaction' ) ;
@@ -707,7 +707,7 @@ export const handlePaymentCancelRefund = async (ctPayment: Payment): Promise<Con
707
707
transaction . type === CTTransactionType . Charge &&
708
708
transaction . state === CTTransactionState . Success &&
709
709
transaction . interactionId ===
710
- pendingRefundTransaction ?. custom ?. fields [ CustomFields . transactions . fields . molliePaymentIdToRefund . name ] ,
710
+ pendingRefundTransaction ?. custom ?. fields [ CustomFields . transactions . fields . molliePaymentIdToRefund . name ] ,
711
711
) as Transaction ;
712
712
}
713
713
0 commit comments