Skip to content

blindpaylabs/blindpay-go

Repository files navigation

BlindPay Go SDK

The official Go SDK for BlindPay - Global payments infrastructure made simple.

🚀 Installation

go get github.com/blindpaylabs/blindpay-go

📋 Requirements

  • Go 1.21 or higher
  • BlindPay API credentials (API Key and Instance ID)

🔧 Quick Start

Basic Usage

package main

import (
	"context"
	"fmt"
	"log"

	"github.com/blindpaylabs/blindpay-go"
)

func main() {
	// Create a new BlindPay client
	client, err := blindpay.New(
		"your-api-key-here",
		"your-instance-id-here",
	)
	if err != nil {
		log.Fatal(err)
	}

	// Get available payment rails
	rails, err := client.Available.GetRails(context.Background())
	if err != nil {
		log.Fatal(err)
	}

	fmt.Printf("Found %d payment rails\n", len(rails))
	for _, rail := range rails {
		fmt.Printf("- %s (%s) in %s\n", rail.Label, rail.Value, rail.Country)
	}
}

Running the Example

go run main.go

For detailed API documentation, visit:

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.

Made with ❤️ by the BlindPay team

About

Blindpay's Golang SDK.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages