Skip to content

Commit

Permalink
fix: get available fingerprint from paymentIntent orders (#9893)
Browse files Browse the repository at this point in the history
  • Loading branch information
kewitz authored Mar 4, 2024
1 parent cc99cd1 commit 7e18f03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/lib/security/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const BASE_STATS_QUERY = `
COALESCE(
COUNT(
DISTINCT COALESCE(
NULLIF(o."data"#>>'{paymentIntent,last_payment_error,payment_method,card,fingerprint}', ''),
NULLIF(o."data"#>>'{paymentIntent,last_payment_error,payment_method,us_bank_account,fingerprint}', ''),
NULLIF(CONCAT(pm."name", pm."data"->>'expYear'), ''),
pm."id"::TEXT
)
Expand Down

0 comments on commit 7e18f03

Please sign in to comment.