Skip to main content
The Go client uses the standard library and supports Go 1.22 or later. With the SDK source at ./vendor-src/orsunpay-go, run these commands from your application’s module directory:

Look up an order

Reuse the client for the same merchant and environment. Pass the caller’s context so a request can be cancelled.
Pass the persisted key for the attempt when calling CreateSale, CreatePayout, CreateRefund or CreatePaymentLink. If a write times out, reconcile the order before trying again. Errors and retries For a webhook, pass the original request bytes and r.Header.Values("OrsunPay-Signature") to orsunpay.VerifyWebhook with the signing secrets for that mode. Process a verified event once by its signed ID. Webhook delivery