Skip to main content

Go SDK

The openlankapay-go-sdk package provides an idiomatic Go client for the Open Pay API with full error handling and context support.

Installation

Initialization

Create a Payment

Create a Checkout Session

Verify Webhook Signature

List Payments

Error Handling

The SDK returns typed errors that you can inspect for status codes and error details.

Context Support

All methods accept a context.Context for cancellation and timeouts: