Skip to content

Commit a7a3d94

Browse files
committed
Set amount of new donation to captured amount of payment
1 parent 47f8eef commit a7a3d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fragdenstaat_de/fds_donation/services.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def create_donation_from_payment(payment):
276276
donation = Donation.objects.create(
277277
donor=donor,
278278
timestamp=order.created,
279-
amount=order.total_gross,
279+
amount=payment.captured_amount,
280280
amount_received=payment.received_amount or Decimal("0.0"),
281281
order=order,
282282
payment=payment,

0 commit comments

Comments
 (0)