#daffodil-20_customer-data
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/1275114156378292315
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
No we don't receive that information from the card -- you would have to collect that yourself
Yes, I do collect it myself, but I didn't find how I can pass it to stripe.
For instance, I use confirmPayment method to include paymntMethod data when using the card field inputs, but there's no similar method for the Terminal
Which Terminal integration are you using here?
The easiest thing to do is to create a Customer object where you store this data (https://docs.stripe.com/api/customers/create#create_customer-address) and then pass that Customer object to the PaymentIntent
I'm using "@stripe/stripe-terminal-react-native": "^0.0.1-beta.13",
The handleCreatePaymentIntent method only takes 2 arguments: amount and stripe mode
const handleCreatePaymentIntent: ({ amount, mode, }: {
amount: number;
mode: StripeMode;
}) => Promise<any>
Hi ๐
My colleague had to go so I'm stepping in
Where are you seeing this method? I'm looking in our SDK and not finding it.
https://stripe.dev/stripe-terminal-react-native
I would expect any function that creates a Payment Intent to use the same createPaymentIntentParams we define here: https://stripe.dev/stripe-terminal-react-native/api-reference/index.html#CreatePaymentIntentParams, which includes customer?: string
However, you are using a relatively outdated version (from August 2023). The current version of the SDK is v0.0.1-beta.20
Where are you seeing this method? I'm looking in our SDK and not finding it.
Sorry about that. It turns out it was a wrapper function for a POST request to our server. After checking the createPaymentIntentParams, Iโve found that both the customer and metadata can be used for this purpose.
you are using a relatively outdated version
WIll look into this as well
Thank you @ancient arrow !
Sure thing! Happy to help ๐