Implement yookassa client
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user