#maayan-via_api
1 messages ¡ Page 1 of 1 (latest)
đ 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. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ 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/1214904626621456404
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
hi! you can pass legacy card_xxx or src_xxx objects to the payment_method field on a PaymentIntent, it just works.
you'd use https://docs.stripe.com/api/refunds/create#create_refund-charge same as normal
same ap ibut would have to pass the ch param and the pi param?
you can use the value of payment_intent.latest_charge (which is a charge object ID ch_xxx ) and pass it to https://docs.stripe.com/api/refunds/create#create_refund-charge or you can call https://docs.stripe.com/api/refunds/create#create_refund-payment_intent with a PaymentIntent ID, both work
you can point on more thing i would have to change to support the legacy?
What do you mean?
is there a limitation for the legacy objects to work with the new api ? that i need to be aware of ? besides what i wrote?
There's many edge cases, but I can't list all of them, it depends on what are you trying to achieve. For your current use case that should be all.
ok thanks !!!
another quick question
is there a need from your knowledge to move this legacy objects to the new one? is it reccomended?
It's not needed, and may require your customers to perform extra steps.
You can try creating SetupIntents with card_ as payment_method: https://docs.stripe.com/api/setup_intents/create#create_setup_intent-payment_method