All URIs are relative to https://api.doitpay.co
Method | HTTP request | Description |
---|---|---|
SimulatePayment | Post /merchant/v1/simulate-payment | Simulate payment of the system. |
Simulate payment of the system.
package main
import (
"context"
"fmt"
"os"
doitpay "github.com/automotechnologies/doitpay-go"
simulate "github.com/automotechnologies/doitpay-go/simulate"
)
func main() {
doitpayClient := doitpay.NewAPIClient("API-KEY")
accountNumber := "12345678"
paymentIdentifier := "sample payment identifier"
request := simulate.InternalWebControllersMerchantApiv1SimulateSimulateRequest{ // [REQUIRED]
AccountNumber: &accountNumber,
PaymentIdentifier: &paymentIdentifier,
}
doitpayClient := doitpay.NewAPIClient("API-KEY")
r, err := apiClient.SimulateAPI.SimulatePayment(context.Background()).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SimulateAPI.SimulatePayment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This endpoint does not need any path parameters
Other parameters are passed through a pointer to a apiSimulatePaymentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
request | InternalWebControllersMerchantApiv1SimulateSimulateRequest | Request payload to simulate payment |
(empty response body)
- Content-Type: application/json
- Accept: Not defined