Skip to main content

yaya-python-sdk

This is a Python SDK package for handling API integration on merchant application.

Installation

To install the sdk to your python based application, add

yayawallet-python-sdk==VERSION

to the requirements.txt file on your python project. Then run 'pip install -r requirements.txt'.

Environment

The sdk expects api credentials to be provided by the user. To set it up, you need to create a .env file and add the following environment variables:

YAYA_API_URL=https://yayawallet.com/api/en
YAYA_API_PATH=/api/en
YAYA_API_KEY=your_yayawallet_api_key
YAYA_API_SECRET=your_yayawallet_api_secret

You can find the last two credentials on https://yayawallet.com/en/profile/settings, after you logged in to your account on a browser.

How to use?

This sdk provides functions that will call different apis available on YaYa's system. Here is how you can call getTransactionListByUser function:

from adrf.decorators import api_view
from rest_framework.response import Response
from yayawallet_python_sdk.api import transaction

@api_view(['GET'])
async def proxy_get_transaction_list_by_user(request):
    response = await transaction.get_transaction_list_by_user(None)
    return Response(response)

You can get the list of services available on yayawallet_python_sdk/api folder on this repo.

Download files

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

Source Distribution

yayawallet_python_sdk-0.2.16.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

yayawallet_python_sdk-0.2.16-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file yayawallet_python_sdk-0.2.16.tar.gz.

File metadata

  • Download URL: yayawallet_python_sdk-0.2.16.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for yayawallet_python_sdk-0.2.16.tar.gz
Algorithm Hash digest
SHA256 77265c6310bb544811ba6f684a23f794ca09124a1c2ba36602657ebfaf1fb503
MD5 cb46ae0da8b2ce2cc05c7e77d6768e40
BLAKE2b-256 8845a7058964eec85a8e523a760d3ffa3e23c808f23e5d530f636009fa3aef52

See more details on using hashes here.

File details

Details for the file yayawallet_python_sdk-0.2.16-py3-none-any.whl.

File metadata

File hashes

Hashes for yayawallet_python_sdk-0.2.16-py3-none-any.whl
Algorithm Hash digest
SHA256 7068cc4196ce38de59a591570c006ee1c78003e1606fc96ea4d08a2a58ad5d14
MD5 fb3a1d389aa4a2377ce14e7e8e8376fd
BLAKE2b-256 f517e2bde14bba5a2a2fbf8a5616482e345f3c91510a724578259980191c9b49

See more details on using hashes here.

Release history Release notifications | RSS feed

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