Skip to content

Commit

Permalink
fix the payment success page
Browse files Browse the repository at this point in the history
  • Loading branch information
vindeolal committed Feb 5, 2021
1 parent fa5967c commit 78e1e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions donation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ def razorpay_verify(request):
logger.debug("RZP Received {0} for verification".format(received_data_str))

expected_signature = hmac.new(
key=settings.RAZORPAY['SECRET_KEY'],
msg=data['razorpay_payment_id'] + '|' + payment_context['subscription_id'],
key=settings.RAZORPAY['SECRET_KEY'].encode(),
msg=(data['razorpay_payment_id'] + '|' + payment_context['subscription_id']).encode(),
digestmod=hashlib.sha256
).hexdigest()

Expand Down

0 comments on commit 78e1e48

Please sign in to comment.