добавлен биллинг и тарифы

добавлена интеграция с юкасса
This commit is contained in:
2025-12-24 09:06:19 +03:00
parent b4ce819931
commit 5f35d7a75f
15 changed files with 745 additions and 212 deletions

View File

@@ -0,0 +1,34 @@
package yookassa
type Amount struct {
Value string `json:"value"`
Currency string `json:"currency"`
}
type Confirmation struct {
Type string `json:"type"`
ReturnURL string `json:"return_url,omitempty"`
URL string `json:"confirmation_url,omitempty"`
}
type PaymentRequest struct {
Amount Amount `json:"amount"`
Capture bool `json:"capture"`
Confirmation Confirmation `json:"confirmation"`
Metadata map[string]string `json:"metadata"`
Description string `json:"description"`
}
type PaymentResponse struct {
ID string `json:"id"`
Status string `json:"status"`
Amount Amount `json:"amount"`
Confirmation Confirmation `json:"confirmation"`
Metadata map[string]string `json:"metadata"`
}
type WebhookEvent struct {
Event string `json:"event"`
Type string `json:"type"`
Object PaymentResponse `json:"object"`
}