#austin_code
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/1227625817824038932
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, thanks for the info. I think there is a way to pass these raw PANs in to the intent's APIs when creating them. Will double check on that and will get back to you
Hey @lilac sorrel huge apologies, just saw that I forgot to follow up here. I am consulting my colleagues on this and will get back to you shortly
No worries, thank you!
You can pass the card info into the payment_method_data hash when creating a SetupIntent or PaymentIntent. We don't document this part of that parameter in our API reference but it is usable if your account is enabled for raw PANs
-u sk_test_XXXX: \
-d confirm=true \
-d payment_method_types[]=card \
-d payment_method_data[type]=card \
-d payment_method_data[card][number]=4242424242424242 \
-d payment_method_data[card][exp_month]=12 \
-d payment_method_data[card][exp_year]=2026 \
-d payment_method_data[card][cvc]=123```
https://docs.stripe.com/api/setup_intents/create#create_setup_intent-payment_method_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you! So the only thing I am running into on this is for the maven dependency on java:
<dependency>
<groupId>com.stripe</groupId>
<artifactId>stripe-java</artifactId>
<version>24.23.0</version>
</dependency>
Does not include these fields, so my SetupIntentCreateParams.PaymentMethodData.builder() does not have a "card" object on it and there is no "CARD" option in the type enum
Is there a different maven dependency that we should be using if we have this functionality enabled?
We have methods in our builder to add parameters that aren't officially supported by that version of the stripe-java library https://github.com/stripe/stripe-java?tab=readme-ov-file#how-to-use-undocumented-parameters-and-properties
So you should be able to add these params with that
Ah ha this is exactly what I was looking for! Thank you very much!
Of course! Glad I could help and thank you so much for your patience