Skip to content

Commit 79d990b

Browse files
committed
fix amount formatting
1 parent 440380d commit 79d990b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_payments_mollie/facade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def _generate_new_payment_payload(
143143
payload = {
144144
"amount": {
145145
"currency": payment.currency,
146-
"value": str(payment.total),
146+
"value": "{:.2f}".format(payment.total),
147147
},
148148
"description": payment.description,
149149
"redirectUrl": return_url,

0 commit comments

Comments
 (0)