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.8.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.8.tar.gz.

File metadata

File hashes

Hashes for ekata-gateway-processor-helper-0.1.8.tar.gz
Algorithm Hash digest
SHA256 33f480c90c906b0ab613f6ff48b00adb5ace28b98a75b7ba82372aa6404dd1c8
MD5 20252902a5698512da07e64043fc5aed
BLAKE2b-256 046a8caa03b6052f42e899c6b6677adffbebd4543ef8579417a178fba0409421

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ekata_gateway_processor_helper-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 eb3b4e66c47abbd3e77cd697ef44cc7f83a0e2f3360678f67845f16a669b6cac
MD5 52305c04bacf9b1226ea8ca489be3151
BLAKE2b-256 8d0e81d74df4409e6ba6a8a7b17bbbaaf85bd64f34676968109fadafe8824db0

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