Implement yookassa client

This commit is contained in:
2026-03-19 00:09:25 +03:00
parent 075a53f6ef
commit dd2c360cf6
15 changed files with 411 additions and 114 deletions

View File

@@ -5,12 +5,23 @@ import "time"
type YooKassa struct {
BaseUrl string
Timeout time.Duration
Retry Retry
Test bool
AllowedCallbackSubnets []string
CheckAllowedCallbackAddress bool
AllowedCallbackSubnets []string
ApiBaseKey string
ApiBaseSecret string
ApiPaymentKey string
ApiPaymentSecret string
CallbackProcessTimeout time.Duration
}
type Retry struct {
Enabled bool
Count int
WaitTime time.Duration
MaxWaitTime time.Duration
}