#dawid_api

1 messages ยท Page 1 of 1 (latest)

latent ivyBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215286992691142686

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

thorny wingBOT
unborn python
#

but yeah metadata is not inherited down to the Invoice's PaymentIntent unless you explicitly set it(e.g call PaymentIntent.update when handling an invoice.finalized webhook event or so on)

ornate patio
#

Oh, not good. So there is no easy way to do it without overall performance downgrade for us (additional call) :/

ornate patio
#

I tried to think more about it and it seems problematic with radar cooperation.

#

We use radar for our fraud detection and have some rules that are intended to block risky payments (based on our internal data)

#

We add some element to stripe lists and based on that list and metadata on payment we block (or not payment)

unborn python
#

let me think about it, maybe there's some way to base rules on Invoice object fields

ornate patio
#

With adding metadata to intent post invoice it will literally too late

unborn python
ornate patio
#

Looks like it would work:

instead

 Review if :risk_score: > 5 and ::shop_id:: in @under_attack_shops 

we can have:

Review if :risk_score: > 5 and (::shop_id:: in @under_attack_shops or ::customer:shop_id:: in @under_attack_shops )
#

sadly

::subscription:shop_id:: in @under_attack_shops

it not working

thorny wingBOT
unborn python
#

yeah only the paths mentioned in the docs (customer and destination) exist for this

ornate patio
#

Ok - so we will try with customer ๐Ÿ™‚