Masterpass Installment Integration
Installation Integration
Preliminary Works
The following information is requested from the provider for the brand-specific and production (live) environment.
API_URL
A secret_key of at least 41 characters in length should be generated. The keys produced during the installation must be stored. Here is an example command to generate a random key:
openssl rand -base64 41
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.
SECRET_KEY
Code received during the preliminary works phase
ADMIN_USERNAME
A username can be entered (example: ‘akinon’)
ADMIN_PASSWORD
A newly created and extension-specific strong password
TASK_INTERVAL_MINUTES
Update interval in minutes. Default: 10
API_URL
Omnitron Settings
The installed extension must also be defined to the project via Omnitron.
Payment Options
The config section of the payment option added to Omnitron should be configured as follows:
{
#...
"installment_slug": "masterpass"
}
Dynamic Settings - INSTALLMENT_PROVIDERS
{
"masterpass": {
"auth": {
"base_url": "<EXTENSION_URL>/v1",
"password": "<ADMIN_PASSWORD value in environment variables>",
"username": "<ADMIN_USERNAME value in environment variables>"
},
"conf": {},
"klass": "omnishop.payments.installment_services.providers.installment_extension.InstallmentExtensionClient"
}
}
Last updated
Was this helpful?