Skip to content

VelmiraPetkova/API-Integration-Zota-as-a-payment-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ZotaPay Integration

This project demonstrates a simple integration with the ZotaPay payment provider. The application implements a deposit (non-credit card) request to the ZotaPay API.

Prerequisites

Ensure you have the following installed:

  • Go (version 1.15 or later)
  • Git

Setup

  1. Clone the Repository

    git clone https://github.com/VelmiraPetkova/API-Integration-Zota-as-a-payment-provider.git
    cd API-Integration-Zota-as-a-payment-provider

Install Dependencies

There are no external dependencies for this project other than the Go standard library.

Functions

GenerateSignature(endpointID string, merchantOrderID string, orderAmount string, customerEmail string, merchantSecretKey string) string: Generates a SHA-256 signature required for the deposit request.

MakeDepositRequest(request *DepositRequest) (*DepositResponse, error): Makes a deposit request to the ZotaPay API and returns the response.

Example Output

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages