#jesper_api

1 messages ยท Page 1 of 1 (latest)

dull sealBOT
#

๐Ÿ‘‹ 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/1369046231103311913

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

boreal forum
#

Hello there

#

Otherwise Radar for Fraud Teams would be the recommended way to set up your own protection.

misty cedar
#

I had a look at payment_intent.payment_failed but ran into issues when trying to obtain the ip address of the user while handling that event.

#

I was hoping to use something like payment_intent_data.metadata to include the ip address, but since I'm using subscriptions that didn't work

boreal forum
#

Yeah you would just base this on the PaymentIntent ID itself.

#

Which is tied to the Session

#

The IP part you would use on your end in terms of Session creation

misty cedar
#

Oh I see, that could work

#

So limit the rate at which new sessions can be created by ip, then expire the session after N failed attempts?

boreal forum
#

Yep

#

That's pretty much the best you can do without using Radar for Fraud Teams

misty cedar
#

Alright thanks! I'll try that then ๐Ÿ‘

misty cedar
# boreal forum Which is tied to the Session

Hey sorry got another follow up. Is there an easy way to find the link back to the session id from the payment_intent.payment_failed event? I can't find any useful identifiers in the event other than the customer. But I'm creating the session without a customer so I can't really use that either.

boreal forum
misty cedar
#

Oh nice that makes sense haha

#

Perfect, thanks!