#austin_code

1 messages ¡ Page 1 of 1 (latest)

honest sleetBOT
#

👋 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.

tropic mantleBOT
raven zephyr
#

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

raven zephyr
#

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

lilac sorrel
#

No worries, thank you!

raven zephyr
#

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
lilac sorrel
#

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?

raven zephyr
lilac sorrel
#

Ah ha this is exactly what I was looking for! Thank you very much!

raven zephyr
#

Of course! Glad I could help and thank you so much for your patience