Skip to main content

Simple QRIS Python SDK for Indonesia

Project description

Qrispy

Simple Python SDK for QRIS payments in Indonesia.

Features

  • Easy to use QRIS payment integration
  • Support for creating QRIS codes
  • Check account balance
  • Handles both success and error responses gracefully

Installation

pip install qrispy

Getting Started with Mayar

This SDK is built for Mayar. Here's why we recommend Mayar:

Why Mayar?

  • Easy Implementation: Straightforward API integration with minimal setup
  • Personal Verification: Verify using personal KTP without needing a business entity (PT)
  • Fast Onboarding: Get started quickly with simple verification process

Register for Mayar

👉 Daftar di Mayar - https://bit.ly/daftar-mayar

After registration, you'll receive your API Key which you can use with this SDK.

Quick Start

from qrispy import Mayar

# Initialize the API client with your Mayar API Key
api = Mayar("YOUR_API_KEY")

# Create a QRIS code
qris = api.create_qris(10000)  # amount in rupiah
if qris.status_code == 200:
    print(qris.url)  # QRIS image URL
else:
    print(f"Error: {qris.message}")

# Check balance
balance = api.balance()
if balance.status_code == 200:
    print(f"Balance: {balance.balance}")
else:
    print(f"Error: {balance.message}")

Response Format

All API responses return an APIResponse object with the following attributes:

  • status_code: HTTP status code from the API
  • message: Response message from the API
  • data: Dictionary containing the response data
  • Dynamic attributes from the response (e.g., url, amount, balance, etc.)

License

MIT License - see LICENSE file for details

Author

Ajang Rahmat (ajangrahmat@gmail.com)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qrispy-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qrispy-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file qrispy-0.1.1.tar.gz.

File metadata

  • Download URL: qrispy-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for qrispy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 750584a95c4b597fab1828d6570eb1d882f491b7dd54ac794825ccd8c2b4f88d
MD5 1dba3c28aba80a26e582e5939a693fb0
BLAKE2b-256 cd190fbabeb650e533cb70617f8666cfd142fe9d496c9d07e3cd0f4efacae9c7

See more details on using hashes here.

File details

Details for the file qrispy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: qrispy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for qrispy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 586b1d00ec9c2ac25db31388ee042cb5987dbb3ffe50ca6173ac492ee62f1801
MD5 c9d3bf0d1769ca57cdd8b2a3dbad51c5
BLAKE2b-256 1e925c4316a2c9a1d9a873557a09a1398b8ec5f2d366ea1c06008e7e67f63744

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page