milkpay.cryptopay 1.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

milkpay.cryptopay 1.0

milkpay is a set of lightweight crypto payment system SDKs.

Installation
pip install -U milkpay-cryptopay


Simple example
import asyncio
import logging
import uuid
from typing import Final

from milkpay.cryptopay import Cryptopay
from milkpay.cryptopay.enums import Asset

API_TOKEN: Final[str] = "API_TOKEN_HERE"


async def main() -> None:
logging.basicConfig(level=logging.DEBUG)
async with Cryptopay(
api_token=API_TOKEN,
production=False,
force_detailed_errors=True,
) as cryptopay:
logging.info(
await cryptopay.transfer(
user_id=5945468457,
asset=Asset.USDT,
amount=1.1,
spend_id=int(uuid.uuid4()),
)
)


if __name__ == "__main__":
asyncio.run(main())

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.