Skip to main content

Cellulant QA adapter

Project description

CELLULANT EXPRESS

qatingg

Python adapter for Cellulant Tingg express checkout version 2.0

To install: pip install qatingg

For all calls you first have to initiate the adapter with your credentials You can find your credentials over here: https://beep2.cellulant.com:9212/checkout/v2/portal/#/home

adapter = MulaAdapter(<client id>, <client secret>, <service code>, <access_key>, <domain>)

domain: User have two options.These are cellulant's testing environments:

STAGING 
or 
SANDBOX

due_date: User can pass the number of minutes( int) for the session or use cellulant data format(''Y-m-d H:M:S'') To get the express page:

checkout_type: Cellulant have several ways of checkout

Example:
-------------
modal
express
themed-checkout
---------------
adapter.get_encryption(
        msisdn='0730xxxxxxx',
        customer_first_name='John',
        customer_last_name='Doeh',
        customer_email='john.doeh@jd.com',
        transaction_id='<unique>',
        account_number='066564ACC',
        amount=1000,
        currency_code='KES',
        country_code='KE',
        description='Air ticket',
        due_date='2019-10-01 12:12:00',
        payer_client_code='i8UytECD',
        language_code='en',
        success_url='http://callbackurl.com/success',
        fail_url='http://callbackurl.com/fail'
        callback_url='http://callbackurl.com/callback',
)
Note: Add payer client code, ONLY if you're testing single payment option' 

This will return checkout response as a url.

Example below:

https://beep2.cellulant.com:9212/checkout/v2/express/?params=<params>&accessKey=<accesskey>&countryCode=KE

Tests

Running tests

python setup.py test

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

qatingg-2.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

qatingg-2.0.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file qatingg-2.0.0.tar.gz.

File metadata

  • Download URL: qatingg-2.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for qatingg-2.0.0.tar.gz
Algorithm Hash digest
SHA256 346a59b5c1dca57b74a54b03e162bd3e62fc544e2664ac5f2b4621df1c965e34
MD5 3b397f6ed711c5383b94636871a8a3c3
BLAKE2b-256 31ca6fc518f5f9375e4eb1c913bdff81e20b837bdbd8d12c946875818e957691

See more details on using hashes here.

File details

Details for the file qatingg-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: qatingg-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for qatingg-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82a56fd1df3059e1d0c5c944e39e335ad13ae44f95cd111f2e84eb037fb1028b
MD5 c9227cf055163e924d0b24d8ee6655e1
BLAKE2b-256 67690d5665ff9e2c588ad2fafaec0a5778363f45cd10197e773888402d00466e

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