#ali_code
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Hi, no that metadata won't be copied over to other objects. You would need to update the object and add the metadata on your end. We document this here: https://support.stripe.com/questions/how-metadata-works-with-related-objects
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?
Can you share the checkout session ID with me?
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?
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?
I think you might want to set up the metadata on the PaymentIntent: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata
Can you try that?
this throws an exception that payment_intent_data cannot be passed in subscription mode
and I get invalid_request_error as response
You're right, you did say subscriptions. Let me confirm after testing this
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.