dummy: always parse query string as text
This commit is contained in:
parent
b88a759e10
commit
bbf699c827
|
@ -6,7 +6,8 @@ def N_(message): return message
|
|||
|
||||
from six.moves.urllib.parse import parse_qs, urlencode
|
||||
|
||||
from .common import PaymentCommon, URL, PaymentResponse, PAID, ERROR, WAITING, ResponseError
|
||||
from .common import (PaymentCommon, URL, PaymentResponse, PAID, ERROR, WAITING,
|
||||
ResponseError, force_text)
|
||||
|
||||
__all__ = [ 'Payment' ]
|
||||
|
||||
|
@ -117,7 +118,7 @@ class Payment(PaymentCommon):
|
|||
return transaction_id, URL, url
|
||||
|
||||
def response(self, query_string, logger=LOGGER, **kwargs):
|
||||
form = parse_qs(query_string)
|
||||
form = parse_qs(force_text(query_string))
|
||||
if not 'transaction_id' in form:
|
||||
raise ResponseError()
|
||||
transaction_id = form.get('transaction_id',[''])[0]
|
||||
|
|
Loading…
Reference in New Issue