Skip to content

byBenPuls/robokassa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Robokassa API

πŸš€ Robokassa API

Unofficial Python Library for Robokassa Payments
πŸ’³ Fast & Secure Payment Integration with Just a Few Lines of Code!

PyPI Version Downloads License


🎨 Features

βœ”οΈ Easy Payment Link Generation
βœ”οΈ Secure Transactions with Hash Algorithms
βœ”οΈ Supports all available Hashes
βœ”οΈ Simple and Fast Integration


πŸ“¦ Installation

pip install robokassa

⚑ Quick Start

from robokassa import HashAlgorithm, Robokassa

robokassa = Robokassa(
    merchant_login="my_login",
    password1="password",
    password2="password",
    is_test=False,
    algorithm=HashAlgorithm.md5,
)

payment_link = robokassa.generate_open_payment_link(out_sum=1000, inv_id=0)
print(payment_link)

Async methods available for advanced actions:

from robokassa.types import InvoiceType

my_link = await robokassa.generate_protected_payment_link(
    invoice_type=InvoiceType.REUSABLE, inv_id=233, out_sum=1000
)

πŸ“– Documentation

πŸ“š Full Documentation (in Russian):
πŸ”— Read the Docs


🌟 Contribute & Support

πŸš€ Found this project useful? Show some ❀️ by giving it a star!


Made with ❀️ for seamless payment integration.