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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ekata-gateway-processor-helper-0.1.8.tar.gz.
File metadata
- Download URL: ekata-gateway-processor-helper-0.1.8.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.7 Linux/5.13.0-27-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33f480c90c906b0ab613f6ff48b00adb5ace28b98a75b7ba82372aa6404dd1c8
|
|
| MD5 |
20252902a5698512da07e64043fc5aed
|
|
| BLAKE2b-256 |
046a8caa03b6052f42e899c6b6677adffbebd4543ef8579417a178fba0409421
|
File details
Details for the file ekata_gateway_processor_helper-0.1.8-py3-none-any.whl.
File metadata
- Download URL: ekata_gateway_processor_helper-0.1.8-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.7 Linux/5.13.0-27-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb3b4e66c47abbd3e77cd697ef44cc7f83a0e2f3360678f67845f16a669b6cac
|
|
| MD5 |
52305c04bacf9b1226ea8ca489be3151
|
|
| BLAKE2b-256 |
8d0e81d74df4409e6ba6a8a7b17bbbaaf85bd64f34676968109fadafe8824db0
|