Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
charge.fraudulent bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kavdev committed Sep 11, 2016
1 parent 31b1c78 commit 83a88e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djstripe/stripe_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def _manipulate_stripe_object_hook(cls, data):
# Assessments reported by you have the key user_report and, if set,
# possible values of safe and fraudulent. Assessments from Stripe have
# the key stripe_report and, if set, the value fraudulent.
data["fraudulent"] = data["fraud_details"] and list(data["fraud_details"].values())[0] == "fraudulent"
data["fraudulent"] = bool(data["fraud_details"]) and list(data["fraud_details"].values())[0] == "fraudulent"

return data

Expand Down

0 comments on commit 83a88e5

Please sign in to comment.