Skip to content

Commit

Permalink
fix paypal handle_invoice_paid: uid -> org_id
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Sep 2, 2024
1 parent 5039bea commit e538574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/paypal.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def _handle_invoice_paid(order_id: str):
purchase_unit = order["purchase_units"][0]
payment_capture = purchase_unit["payments"]["captures"][0]
add_balance_for_payment(
uid=payment_capture["custom_id"],
org_id=payment_capture["custom_id"],
amount=int(purchase_unit["items"][0]["quantity"]),
invoice_id=payment_capture["id"],
payment_provider=PaymentProvider.PAYPAL,
Expand Down

0 comments on commit e538574

Please sign in to comment.