Skip to content

Commit

Permalink
fix: return correct search id
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrak98 authored Nov 29, 2024
1 parent a3face0 commit 58bd325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions press/press/doctype/stripe_webhook_log/stripe_webhook_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ def stripe_webhook_handler():
def get_intent_id(form_dict):
try:
form_dict_str = frappe.as_json(form_dict)
intent_id = re.search(r"pi_\w+", form_dict_str)
intent_id = re.findall(r"pi_\w+", form_dict_str)
if intent_id:
return intent_id.group(0)
return intent_id[1]
return None
except Exception:
frappe.log_error(title="Failed to capture intent id from stripe webhook log")
Expand Down

0 comments on commit 58bd325

Please sign in to comment.