Requires:
- go1.21+
This repository contains a Git submodule, which contains the Open Payments OpenAPI specifications. After cloning, make sure to initialize and update it:
git submodule update --initAlternatively, clone the repository with submodules in one step:
git clone --recurse-submodules https://github.com/interledger/open-payments-go.gitThe SDK depends on types generated from the specs. To generate types from the specs:
go generate ./generated
From root:
go test ./...
Note, this runs all tests including integration, which requires the Rafiki localenv.
Integration tests can be run against a local or testnet Rafiki environment:
go test ./test/integration -env=testnet
Or to run test from a specific package:
go test ./httpsignatureutils
To include all logs for debugging or development:
go test -v ./...