Skip to Content

QPay payments in Go

Official SDK libraries for the QPay V2 Payment API. One consistent interface across 11 languages, 9 frameworks, and 7 CMS plugins.

$go get github.com/qpay-sdk/qpay-goClick to copy
11
SDKs
9
Frameworks
7
CMS Plugins
19
Registries
Get StartedGitHub

Why QPay SDK?

  • Automatic Token Management — Authenticate once. Tokens are obtained, cached, and refreshed behind the scenes. You never write auth code.
  • Type-safe Models — Strongly typed request and response objects in every language. Catch errors at compile time, not in production.
  • Comprehensive Error Handling — Structured error types with QPay error codes, HTTP status codes, and raw response bodies.
  • Full API Coverage — Invoices, payments, refunds, cancellations, and ebarimt. Every V2 endpoint is supported.
  • Consistent API Surface — The same method names and patterns across all 11 SDKs. Learn one, know them all.
  • Environment Variable Config — Set five env vars and go. Or configure manually in code. Your choice.

Published SDKs

All core SDKs are released at v1.0.0 and available on their respective package registries.

LanguagePackageRegistryInstall Command
Goqpay-gopkg.go.dev go get github.com/qpay-sdk/qpay-go
JavaScript / TypeScriptqpay-jsnpm npm install qpay-js
Pythonqpay-pyPyPI pip install qpay-py
PHPqpay-phpPackagist composer require usukhbayar/qpay-php
Rubyqpay-rubyRubyGems gem install qpay-sdk
Dart / Flutterqpay-dartpub.dev dart pub add qpay
Rustqpay-rustcrates.io cargo add qpay
Javaqpay-javaMaven Central See Java SDK docs
.NET (C#)qpay-dotnetNuGet dotnet add package QPay
Swiftqpay-swiftSPM Swift Package Manager
cURLqpay-curlGitHubgit clone (shell scripts)

Framework Packages

Framework-specific integration packages built on top of the core SDKs. Each package follows the conventions of its framework — dependency injection, configuration, webhook routing, and UI components come pre-wired.

FrameworkPackageRegistryInstall Command
Laravelqpay-sdk/laravelPackagist composer require qpay-sdk/laravel
Djangodjango-qpayPyPI pip install django-qpay
Spring Bootqpay-spring-boot-starterMaven Central Maven / Gradle
Express@qpay-sdk/expressnpm npm install @qpay-sdk/express
NestJS@qpay-sdk/nestjsnpm npm install @qpay-sdk/nestjs
Railsqpay-railsRubyGems gem install qpay-rails
ASP.NET CoreQPay.AspNetCoreNuGet dotnet add package QPay.AspNetCore
Flutterqpay_flutterpub.dev flutter pub add qpay_flutter
FastAPIfastapi-qpayPyPI pip install fastapi-qpay

See the Framework Packages documentation for setup guides and usage details.


CMS Plugins

Drop-in payment plugins for popular e-commerce and CMS platforms. These plugins integrate directly with the QPay V2 API — no SDK dependency required.

PlatformPluginGitHubMarketplace
WooCommerceqpay-woocommerceqpay-woocommerce WordPress.org (submitted)
Shopifyqpay-shopifyqpay-shopify Shopify App Store (pending)
OpenCartqpay-opencartqpay-opencart OpenCart Marketplace (pending)
Magentoqpay-magentoqpay-magento Adobe Commerce (in review)
PrestaShopqpay-prestashopqpay-prestashop GitHub
WordPressqpay-wordpressqpay-wordpress GitHub
Odooqpay-odooqpay-odoo GitHub

See the CMS Plugins documentation for installation and configuration guides.


SectionDescription
Getting StartedStep-by-step guide from zero to first payment
SDKsPer-language SDK documentation with full API reference
FrameworksFramework-specific integration packages
CMS PluginsE-commerce platform plugins
ExamplesFull-stack payment flow examples (Express, Go, FastAPI, Laravel, Django)
API ReferenceQPay V2 endpoint reference (auth, invoices, payments, ebarimt)
Error CodesComprehensive error code reference and troubleshooting
StatsReal-time download and star statistics

API Environments

EnvironmentBase URLPurpose
Productionhttps://merchant.qpay.mnLive payments with real money
Sandboxhttps://merchant-sandbox.qpay.mnTesting and development

Open Source

All SDKs, framework packages, and CMS plugins are open source under the MIT license. Contributions are welcome.

Last updated on