Skip to content

domgolonka/hyperswitch-go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for swagger

Get started Juspay Router provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body, and return standard HTTP response codes. You can consume the APIs directly using your favorite HTTP/REST library. We have a testing environment referred to "sandbox", which you can setup to test API calls without affecting production data. ### Base URLs Use the following base URLs when making requests to the APIs: | Environment | Base URL | |---------------|------------------------------------------------------| | Sandbox | https://sandbox.hyperswitch.io | | Production | https://router.juspay.io | # Authentication When you sign up on our dashboard and create a merchant account, you are given a secret key (also referred as api-key). You may authenticate all API requests with Juspay server by providing the appropriate key in the request Authorization header. Never share your secret api keys. Keep them guarded and secure.

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 0.2
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen For more information, please visit https://juspay.io

Installation

Put the package under your project folder and import it.

Documentation for API Endpoints

All URIs are relative to your url.

Class Method HTTP request Description
CustomersApi CreateCustomer Post /customers Create Customer
CustomersApi DeleteCustomer Delete /customers/{id} Delete Customer
CustomersApi RetrieveCustomer Get /customers/{id} Retrieve Customer
CustomersApi UpdateCustomer Post /customers/{id} Update Customer
MandatesApi ListMandateDetails Get /customers/{customer_id}/mandates Mandate - List all mandates against a customer id
MandatesApi ListMandateDetails_0 Get /mandates/{id} Mandate - List details of a mandate
MandatesApi RevokeMandateDetails Post /mandates/{id}/revoke Mandate - Revoke a mandate
MerchantAccountsApi CreateMerchantAccount Post /accounts Merchant Account - Create
MerchantAccountsApi DeleteMerchantAccount Delete /accounts/{id} Merchant Account - Delete
MerchantAccountsApi RetrieveMerchantAccount Get /accounts/{id} Merchant Account - Retrieve
MerchantAccountsApi UpdateMerchantAccount Post /accounts/{id} Merchant Account - Update
PaymentConnectorsApi CreatePaymentConnector Post /account/{account_id}/connectors Payment Connector - Create
PaymentConnectorsApi DeletePaymentConnector Delete /account/{account_id}/connectors/{connector_id} Payment Connector - Delete
PaymentConnectorsApi RetrievePaymentConnector Get /account/{account_id}/connectors/{connector_id} Payment Connector - Retrieve
PaymentConnectorsApi UpdatePaymentConnector Post /account/{account_id}/connectors/{connector_id} Payment Connector - Update
PaymentMethodsApi CreatePaymentMethodForCustomer Post /payment_methods PaymentMethods - Create
PaymentMethodsApi DeletePaymentMethods Post /payment_methods/{id}/detach Delete PaymentMethods
PaymentMethodsApi ListPaymentMethodsByCustomerId Get /customers/{customer_id}/payment_methods List payment methods for a Customer
PaymentMethodsApi ListPaymentMethodsByMerchantId Get /payment_methods/{merchant_id} List payment methods for a Merchant
PaymentMethodsApi UpdatePaymentMethodForCustomer Post /payment_methods/{id} PaymentMethods - Update
PaymentsApi CancelPayment Post /payments/{id}/cancel Payments - Cancel
PaymentsApi CapturePayment Post /payments/{id}/capture Payments - Capture
PaymentsApi ConfirmPayment Post /payments/{id}/confirm Payments - Confirm
PaymentsApi CreatePayment Post /payments Payments - Create
PaymentsApi RetrievePayment Get /payments/{id} Payments - Retrieve
PaymentsApi UpdatePayment Post /payments/{id} Payments - Update
QuickStartApi CreateMerchantAccount Post /accounts Merchant Account - Create
QuickStartApi CreatePayment Post /payments Payments - Create
QuickStartApi CreatePaymentConnector Post /account/{account_id}/connectors Payment Connector - Create
QuickStartApi CreateRefunds Post /refunds Refunds - Create
QuickStartApi RetrievePayment Get /payments/{id} Payments - Retrieve
QuickStartApi RetrieveRefund Get /refunds/{id} Refunds - Retrieve
RefundsApi CreateRefunds Post /refunds Refunds - Create
RefundsApi RetrieveRefund Get /refunds/{id} Refunds - Retrieve
RefundsApi UpdateRefund Post /refunds/{id} Refunds - Update

Documentation For Models

Documentation For Authorization

AdminSecretKey

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

ApiSecretKey

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

support@juspay.in