GarantiPay 2.0 Payment Extension
Zero Installation
The pip package required for payment package installation in zero, this pip package needs to be added to zero's requirements.txt
Pip package: https://pypi.org/project/garantipay-payment/1.0.0/
Extension Installation
Preliminary Works
The following information is requested from the provider for the brand-specific and production (live) environment.
GPAY API URL
GPAY TOKEN
JWK_KEY
CREDIT_CONFIG
A hash_key is generated with a minimum length of 32 characters. The generated key must be kept throughout the installation. An example command line to generate a random key:
openssl rand -base64 41A secret_key must also be generated with a minimum length of 41 characters for security reasons. The generated key must be kept throughout the installation.
Environment Variables
The extension installed to the relevant project in ACC must have the following environment variables. Environment variables can be entered before or after the deployment phase. As changes are made to the environment variables, the deployment process must be performed again.
Variable
Description
Extension-specific
GPAY_API_URL
URL received during the preliminary works phase (without a trailing slash at the end)
GPAY_TOKEN
Token received during the preliminary works phase
JWK_KEY
JWK key in Virtual Pos Portal
CREDIT_CONFIG
Configuration for credit payment. CREDIT_CONFIG Example: {"phone":{"term":6,"code":"AC"},"computer":{"term":3,"code":"AC"},"default":"BF"}
Generic
SECRET_KEY
The generated secret key during the preliminary works phase
HASH_KEY
The generated hash key during the preliminary works phase
ADMIN_EMAIL
The e-mail address of the installer can be entered
ADMIN_PASSWORD
A newly created and extension-specific strong password
ADMIN_USERNAME
A username can be entered (example: ‘akinon’)
WEBHOOK_URL
https://{SHOP_URL}/orders/hooks/payment
Omnitron Settings
The installed extension must also be defined to the project via Omnitron. For this, Payment Options & Add/Edit POS Integration pages should be consulted. After the settings are completed, it will be accessible under a new tab on the payment screen as it is a redirection type payment integration.
Payment Options
One payment option must be defined in Omnitron to be specific for the extension installed. Explanations on how the settings should be made at this stage are in the table below.
Field
Description
Payment Option
Redirect to bank
Payment Option Name
Redirection
Payment Option Slug
gpay_ext
Config*
{"pos_slug":"gpay_ext"}
* Fields other than pos_slug should be determined according to the requirements.
POS Integration
One POS integration must be defined in Omnitron to be specific for the extension installed. Explanations on how the settings should be made at this stage are in the table below.
Field
Description
Name
GarantiPayv2
Slug
gpay_ext
Gateway
extension
Resource URL
EXTENSION URL
Username
ADMIN_USERNAME value in environment variables
Password
ADMIN_PASSWORD value in environment variables
Hash Key
Random hash key
Payment Type
SALE
Webhook
No additional configuration is required to use webhooks with the GarantiPay 2.0 Payment Extension. Payment transactions processed through the GarantiPay 2.0 Payment Extension will automatically generate a webhook registration for that transaction.
Last updated
Was this helpful?

