This is the official page of the Zota Go SDK. It is intended to be used by developers who run modern Go applications and would like to integrate our next generation payments platform.
Go SDK provides all the necessary methods for integrating the zota Merchant API.
- A functioning Zota Sandbox or Production account and related credentials (
MerchantID
,MerchantSecretKey
,EndpointID
) - Go 1.20 or greater
After all the files are loaded configuration is needed. This can be done initiation of zota.SDK{}
. Configuration includes:
- Credentials
- Endpoint API url - test or production environment
After everything is setup all requests to the API are made with the corresponding methods:
- Deposit
- Payout
- Callback
- Order Status
- Orders Report
All the methods belongs to zota.SDK
struct which we discussed in configuration section.
First the data object has to be created with all required fields (ex. zota.DepositOrder{...}
).
After that the request method is called with the data object as parameter. (ex. sdk.Deposit(zota.DepositOrder{...})
)
Every request method returns response and error objects. The error needs to be handled properly. If error is equal to nil you can access the Http code and the Data object in the response.
Method for callback handling is available:
sdk.Callback(CallbackRequestBody)
Examples are available in examples
folder.
Requests:
deposit.go
- Deposit requestpayout.go
- Payout requestorderStatus.go
- Order status requestordersReport.go
- Orders report request
Order Handlers:
callback.go
- API Callback
Codecov.io visualisation of code blocks and their test coverage.
The Zota API guide can be found on the official API Documentation pages for deposit and payout operations.
This SDK is developed and supported by Zota. For sign-up and sales inquiries, please contact us through our official website. For technical inquiries, please visit our Github page and open an issue.