Socket
Socket
Sign inDemoInstall

github.com/velmirapetkova/api-integration-zota-as-a-payment-provider

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/velmirapetkova/api-integration-zota-as-a-payment-provider


Version published
Created
Source

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

FAQs

Package last updated on 12 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc