Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into dev
  • Loading branch information
jelanmathewjames committed Jun 25, 2024
2 parents bdacfa9 + acc172a commit 5a390d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/donate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def post(self, request):
)
transaction_details = {
"Amount": float(data['amount']) / 100,
"Currency": data['currency', None],
"Currency": data.get('currency', None),
"Name": data['notes']['name'],
"Email": data['notes']['email'],
}
Expand All @@ -119,6 +119,6 @@ def post(self, request):
if serializer.is_valid():
serializer.save()

return create_receipt(transaction_details)
return CustomResponse(response = transaction_details).get_success_response()
except razorpay.errors.SignatureVerificationError as e:
return CustomResponse(general_message = "Payment Verification Failed").get_failure_response()

0 comments on commit 5a390d1

Please sign in to comment.