#Vikram A-prefill-data
1 messages · Page 1 of 1 (latest)
am using setup intent api
https://stripe.com/docs/payments/save-and-reuse#react-native-apple-pay this link i am using for reference
everything is working just there's no solution for prefilling the billing details
So you're using the React Native flow?
yes
if i try to send billingDetails Object with the initPaymentSheet like
billingDetails: {
address: {
country: 'DK',
},
},
it throws an error
is there something i am doing wrong ?
Hey there, just stepping in for toby who needs to step away -- taking a look here for you
What is the error you encounter?
hi
What you've shared aligns with what is documented here:
https://stripe.com/docs/payments/save-and-reuse?platform=react-native&ui=payment-sheet#default-billing-details
Which version of the react native SDK are you using?
am using 0.63, its saying the the type billingDetails doesnt exist on type setup Params
am sending it like this where custom is object as specified in documents
Hmm our docs might have a bug. Can you try using defaultBillingDetails ?
ok let me check
getting same issue, do i have to update the stripe sdk ?
am using this version
Ah, yes, support for this was added in version 0.2.3: https://github.com/stripe/stripe-react-native/releases/tag/v0.2.3
So you'll need to upgrade to at least that version
NP!