Skip to main content

Backend helper functions for ekata gateway processor

Project description

Ekata Gateway Processor backend helper functions

Create form id

Use this function to create a form id from your backend, if successful it will return form_id and created_on.

    from ekata_gateway_processor_helper import create_payment_form
    from ekata_gateway_processor_helper.exceptions import (
        InvalidAPIKeyException, InvalidProjectException, NoEnabledCurrencyException,
        InvalidArgumentsException
    )

    try:
        form_id, created_on = create_payment_form(
            amount=int(Decimal(amount) * 100) # Always provide in atomic amount of fiat currency,
            fiat_currency='USD',
            project_id='',
            api_key=''
        )
    except InvalidProjectException as e:
        print(e.message)
    except InvalidAPIKeyException as e:
        print(e.message)
    except NoEnabledCurrencyException as e:
        print(e.message)
    except InvalidArgumentsException as e:
        print(e.arguments)

Verify payment payload

Use this function to verify payment payload received after successful payment

    from ekata_gateway_processor_helper import verify_payload
    if verify_payload(
        payload='' # payload received from frontend or webhook,
        signature_secret='' #payment signature secret
        ):
        # Proceed with checkout, like send success message to frontend etc

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

ekata-gateway-processor-helper-0.1.9.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file ekata-gateway-processor-helper-0.1.9.tar.gz.

File metadata

File hashes

Hashes for ekata-gateway-processor-helper-0.1.9.tar.gz
Algorithm Hash digest
SHA256 b89b35339c9dd79fcab4614ded830e26c3f84fb52415c32d0757c298130e3874
MD5 cc693077a48d0ac1ea7aa9cdcdb579f7
BLAKE2b-256 870b998338690b610e576b52dca4aa9eb4d5ee674347bff21f0b85a1a4cc979b

See more details on using hashes here.

File details

Details for the file ekata_gateway_processor_helper-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for ekata_gateway_processor_helper-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ada4f2b06293e72dda6f46f1ca90b6208ecb2d26f87662e2ca648e11f115cd2a
MD5 68f9cf16e50c1b13050b2f4604876e3c
BLAKE2b-256 0800162d4bb4c7981f70e383494aa106c4f1c8288e3700b3523e9d155de3608e

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