File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ function logPaymentSuccess(session, paymentStatus) {
6464 buildPaymentInfo (
6565 'pre-auth' ,
6666 'success' ,
67- `${ paymentStatus . state . status } amount=${ paymentStatus . amount } ` ,
67+ `${ paymentStatus . state . status } amount=${ paymentStatus . amount / 100 } ` ,
6868 session . isLivePayment ,
6969 paymentStatus . paymentId
7070 ) ,
@@ -82,7 +82,7 @@ function logPaymentFailure(session, paymentStatus) {
8282 buildPaymentInfo (
8383 'pre-auth' ,
8484 'failed/cancelled' ,
85- `${ paymentStatus . state . status } amount=${ paymentStatus . amount } ` ,
85+ `${ paymentStatus . state . status } amount=${ paymentStatus . amount / 100 } ` ,
8686 session . isLivePayment ,
8787 paymentStatus . paymentId
8888 ) ,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export class PaymentService {
6060 buildPaymentInfo (
6161 'create-payment' ,
6262 'success' ,
63- `amount=${ amount } ` ,
63+ `amount=${ amount / 100 } ` ,
6464 isLivePayment ,
6565 response . payment_id
6666 ) ,
@@ -156,7 +156,7 @@ export class PaymentService {
156156 category : 'payment' ,
157157 action : 'capture-payment' ,
158158 outcome : 'success' ,
159- reason : `amount=${ amount } ` ,
159+ reason : `amount=${ amount / 100 } ` ,
160160 reference : paymentId
161161 }
162162 } ,
You can’t perform that action at this time.
0 commit comments