Skip to main content

Go Examples

Illustrative Go examples for integrating with the LuxCore API using the standard library.

LuxCore Client Package

Save this API v1 package as luxcore/client.go in your Go module. Replace your-project/luxcore in the examples with your module import path.
The webhook helpers below use the default HMAC-SHA256 algorithm. Use the configured algorithm and verify a test delivery before enabling business actions. These examples are clients for API v1, not official SDK packages.

Usage Examples

Create a Deposit Payment

Create a Withdrawal (Payout)

Webhook Handler (net/http)

Error Handling

Complete Example with Gin