diff --git a/backend/src/payments/payment_handler.py b/backend/src/payments/payment_handler.py index c4128b3..0da1d9f 100644 --- a/backend/src/payments/payment_handler.py +++ b/backend/src/payments/payment_handler.py @@ -42,6 +42,7 @@ class Item(BaseModel): name: str description: str unit_price: float + anyway_credits: int def item_from_sql(item_id: str): @@ -59,7 +60,8 @@ def item_from_sql(item_id: str): id = '12345678', name = 'test_item', description = 'lorem ipsum', - unit_price = 420 + unit_price = 420, + anyway_credits = 99 ) @@ -290,6 +292,9 @@ class PaypalHandler: # currency : order_request.currency # updated_at : order_request.created_at + # Now we can increment the supabase balance by so many credits as in the balance. + #TODO still + return order_response.json()