Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
* master:
  Update changlelog and bump version
  Fix querydict construction

# Conflicts:
#	django_pesapal/__init__.py
  • Loading branch information
odero committed May 3, 2016
2 parents 812d0c5 + 1b6bba2 commit 7f88300
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
History
-------
1.0.1 (2015-11-21)
++++++++++++++++++
- Fix querydict bug

1.0.0 (2015-11-11)
++++++++++++++++++
- Support Django 1.8
Expand Down
6 changes: 3 additions & 3 deletions django_pesapal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def get_payment_status(self, **kwargs):
class PaymentResponseMixin(object):

def build_url_params(self):
url_params = QueryDict(mutable=True)
url_params = QueryDict('', mutable=True)
url_params.update(
{
'pesapal_merchant_reference': self.transaction.merchant_reference,
Expand Down Expand Up @@ -276,7 +276,7 @@ def get_redirect_url(self, *args, **kwargs):
# redirect back to Transaction completed view
url = reverse('transaction_completed')

query_dict = QueryDict(mutable=True)
query_dict = QueryDict('', mutable=True)
query_dict.update(params)
url += '?' + query_dict.urlencode()

Expand All @@ -289,7 +289,7 @@ def build_ipn_response(self):
params = self.get_params()
params['pesapal_notification_type'] = self.request.GET.get('pesapal_notification_type')

query_dict = QueryDict(mutable=True)
query_dict = QueryDict('', mutable=True)
query_dict.update(params)
response = query_dict.urlencode()
return HttpResponse(response)
Expand Down

0 comments on commit 7f88300

Please sign in to comment.