#ali_code

1 messages ¡ Page 1 of 1 (latest)

rough driftBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247639973251907787

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

inner epoch
potent jolt
#

Hi, thanks for the information. You mean I need to update the radar session object and add the metadata? if so, how can I get this radar session id/object?

inner epoch
#

Can you share the checkout session ID with me?

potent jolt
#

Sure, one sec

#

cs_test_a1ZF4pUlqGeGv70p02dvjTgbqEbAk7V4eBrZXadQNKZaKtN8C1Nxnuh7lL

inner epoch
#

So Radar Sessions are used when you use third party tokenization. Since you use StripeCheckout, it would not apply.

From that CheckoutSession ID, which object are you trying to save the metadata to specifically?

potent jolt
#

I want to block certain transactions using Stripe Radar rules based on specific metadata. I attempted to attach this metadata to both the checkout session object and the subscription_data object, but when I referenced this metadata (Block if ::metadata:: = 'value'), it didn't work

#

Is there anyway to achieve this?

inner epoch
#

Can you try that?

potent jolt
#

this throws an exception that payment_intent_data cannot be passed in subscription mode

#

and I get invalid_request_error as response

inner epoch
#

You're right, you did say subscriptions. Let me confirm after testing this

rough driftBOT
inner epoch
#

Ok, yeah, what I was thinking won't work. I do not think what you're trying to do work as you can't set the payment intent's metadata from the subscription before the payment intent is created.