#will_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.
âąď¸ 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/1298071780543696896
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! gimme a while to think about this
like what you said the PaymentMethod API doesn't in itself support on_behalf_of, what you'll probably want to do instead is to use the SetupIntent API where you can pass in the raw card details via payment_method_data parameter (just like how you do it with PaymentIntents) and include on_behalf_of - https://docs.stripe.com/api/setup_intents/create#create_setup_intent-on_behalf_of
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
O awesome! I read through the docs and it wasn't entirely clear how that would be accomplished. I didn't see anything under payment_method_data for like a generic US debit/credit card--at least nothing jumped out at me from the docs.
Is there a specific attribute of payment_method_data I could use? For example, I see payment_method_data.alipay, but I don't see payment_method_data.card (or whatever the generic US card attribute would be) in the docs.
What attribute should I try this with?
onesec, let me throw together something for you