This commit is contained in:
Frédéric Péters 2016-02-16 19:11:47 +01:00
parent 18ce89571b
commit 1872b62589
3 changed files with 9 additions and 4 deletions

View File

@ -3,6 +3,8 @@ import string
import logging
import warnings
def N_(message): return message
try:
from cgi import parse_qs
except ImportError:
@ -41,13 +43,13 @@ class Payment(PaymentCommon):
'parameters': [
{
'name': 'normal_return_url',
'caption': _('Normal return URL'),
'caption': N_('Normal return URL'),
'default': '',
'required': True,
},
{
'name': 'automatic_return_url',
'caption': _('Automatic return URL'),
'caption': N_('Automatic return URL'),
'required': False,
},
{ 'name': 'dummy_service_url',

View File

@ -16,6 +16,8 @@ import Crypto.Cipher.DES
from common import (PaymentCommon, URL, PaymentResponse, RECEIVED, ACCEPTED,
PAID, ERROR)
def N_(message): return message
__all__ = ['Payment']
KEY_DES_KEY = '\x45\x1f\xba\x4f\x4c\x3f\xd4\x97'
@ -96,13 +98,13 @@ class Payment(PaymentCommon):
'parameters': [
{
'name': 'normal_return_url',
'caption': _('Normal return URL'),
'caption': N_('Normal return URL'),
'default': '',
'required': True,
},
{
'name': 'automatic_return_url',
'caption': _('Automatic return URL'),
'caption': N_('Automatic return URL'),
'required': False,
},
{ 'name': 'cle',

View File

@ -4,6 +4,7 @@ import datetime as dt
import hashlib
import logging
import string
import urlparse
import warnings
from gettext import gettext as _