All URIs are relative to https://api.paystack.co
| Method | HTTP request | Description |
|---|---|---|
| IntegrationFetchPaymentSessionTimeout | Get /integration/payment_session_timeout | Fetch Payment Session Timeout |
| IntegrationUpdatePaymentSessionTimeout | Put /integration/payment_session_timeout | Update Payment Session Timeout |
Response IntegrationFetchPaymentSessionTimeout(ctx).Execute()
Fetch Payment Session Timeout
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationAPI.IntegrationFetchPaymentSessionTimeout(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationAPI.IntegrationFetchPaymentSessionTimeout``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IntegrationFetchPaymentSessionTimeout`: Response
fmt.Fprintf(os.Stdout, "Response from `IntegrationAPI.IntegrationFetchPaymentSessionTimeout`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiIntegrationFetchPaymentSessionTimeoutRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response IntegrationUpdatePaymentSessionTimeout(ctx).Body(body).Execute()
Update Payment Session Timeout
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
body := map[string]interface{}{ ... } // map[string]interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationAPI.IntegrationUpdatePaymentSessionTimeout(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationAPI.IntegrationUpdatePaymentSessionTimeout``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IntegrationUpdatePaymentSessionTimeout`: Response
fmt.Fprintf(os.Stdout, "Response from `IntegrationAPI.IntegrationUpdatePaymentSessionTimeout`: %v\n", resp)
}Other parameters are passed through a pointer to a apiIntegrationUpdatePaymentSessionTimeoutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| body | map[string]interface{} |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]