SDK Reference
The reference for the GoBTC Pay SDKs: what each one exposes, from packages down to methods, types, events, and errors.
Available SDKs
| SDK | Package | Reference | Status |
|---|---|---|---|
| POS API SDK | @gobtcpay/pos-api-sdk | POS API SDK reference | Published |
| PHP SDK | gobtcpay/php-merchant-sdk | PHP SDK reference | Published |
The POS API SDK is the official client for the POS API surface. The same package works both on a server and in the browser, so you create a payment, show the QR, and track it until it settles from either place.
It uses the Web Crypto API rather than node:crypto, which is why one build covers Node 18+, bundled browser apps, and plain HTML pages. The API version is pinned inside the package, so there is no version string in your URLs.
The SDK signs every request with a fresh HMAC signature and timestamp, so there is no token to manage or refresh. The trade-off is that the terminal key must stay somewhere you control.
See the POS API SDK reference for the full API.