28 lines
449 B
Go
28 lines
449 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
type YooKassa struct {
|
|
BaseUrl string
|
|
Timeout time.Duration
|
|
Retry Retry
|
|
Test bool
|
|
|
|
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
|
|
}
|