lost part of b69cefbfa8
(#9998)
This commit is contained in:
parent
18ce89571b
commit
1872b62589
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -4,6 +4,7 @@ import datetime as dt
|
|||
import hashlib
|
||||
import logging
|
||||
import string
|
||||
import urlparse
|
||||
import warnings
|
||||
from gettext import gettext as _
|
||||
|
||||
|
|
Loading…
Reference in New Issue