Добавлена обработка уведомлений через ручку
This commit is contained in:
@@ -60,3 +60,16 @@ class InitPaymentRequest(BaseModel):
|
||||
|
||||
class InitPaymentResponse(BaseModel):
|
||||
payment_url: str = Field(min_length=1)
|
||||
|
||||
|
||||
class TBankPaymentNotification(BaseModel):
|
||||
model_config = ConfigDict(extra="allow")
|
||||
|
||||
TerminalKey: str = Field(min_length=1)
|
||||
OrderId: str = Field(min_length=1)
|
||||
Success: bool
|
||||
Status: str = Field(min_length=1)
|
||||
PaymentId: int = Field(gt=0, strict=True)
|
||||
ErrorCode: str = Field(min_length=1)
|
||||
Amount: int
|
||||
Token: str = Field(min_length=1)
|
||||
|
||||
Reference in New Issue
Block a user