1.4.2 move pay_system url to settings

This commit is contained in:
SDE
2024-07-09 13:40:32 +03:00
parent c2b6890311
commit f9906ea8fc
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import json
from django.conf import settings
import requests
from requests_pkcs12 import get,post
@@ -7,7 +8,7 @@ pkcs12_password = 'QNlhRStcY7mB'
def get_domain_url():
return 'https://sandboxapi.paymtech.kz/'
return settings.PAY_SYSTEM_URL #'https://sandboxapi.paymtech.kz/'
def get_kwargs_for_request():
return {

View File

@@ -37,6 +37,9 @@ WEBPUSH_SETTINGS = {
}
PAY_SYSTEM_URL = 'https://sandboxapi.paymtech.kz/'
SOCIALACCOUNT_LOGIN_ON_GET=True
ACCOUNT_DEFAULT_HTTP_PROTOCOL='https'