#-zk_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/1283447451994427507
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
This is the screen that i'm talking about
Hello, looking in to this. I don't think it is possible to pre fill our form but I will double check. Even if you can't pre-fill our form you can likely do this by pre-filling the info and presenting the details to your user in your own UI and then calling confirmPayment on the intent without the payment element when they click submit.
i don't know if i understand, what do u mean with pre-filling with my UI, it's like using 'JS' to fill the elements? if so i don't think i'm able to do that due CORS policts cause the elements are inside an iframe
Correct, but it turns out we have a defaultValues parameter that you can pass us while setting up the address element. If you pass us their address that way, the info should show up prefilled in the address element
okay let me see if i get this right
when i'm calling the method to mount the form i have to pass the address elements as an additional parameter?
something like this in the image
i saw on the documentation that i can mount an address on screen but i dont wanna it since the customer already filled my custom form
Hello
Catching up here..
hello hanzo, how are u doing
I'm doing well. Can I ask a clarifying question? What exactly are you trying to do?
Are you trying to use address element and prefill it? Or are you trying to not use address element but still pass the billing address as part of confirmation request?
let me explain
I have a checkout with 4 steps in my platform
billing address
shipping address
shipping methods
payment method
the top 3 aren't mounted by stripe i use i custom form provided by my platform
when the customer arrive in payment method if he chooses boleto (ticket) stripe ask some address data that i the customer had already filled in previosly step, so i would like to pass this information to stripe so the customer does not have do fill it again
What element are you using for Boleto payment?
If you're not using PaymentElement, you can follow the steps here: https://docs.stripe.com/payments/boleto/accept-a-payment?payment-ui=direct-api#web-submit-payment
It shows you how you can pass billing details when calling confirmBoletoPayment
it's not like this, i'm creating a payment intents so the customer can chosse wich payment method to use
i'm following this documentation -> https://docs.stripe.com/connect/separate-charges-and-transfers?platform=web&ui=elements#enable-payment-methods
on step 2 we create the payment element
Ah in that case, you'd pass billing_details to confirmPayment function instead
https://docs.stripe.com/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
no the payment is not confirmed yet
when stripe mounts the form in the screen the form comes with some address data to the customer fill its before the payment confirmation
ah whoops sorry about that
i wanna do something like this when i'm creating the payment form
it woked, i saw that i have to pass as an option while creating the element
like this
now i'm gonna pick the values from my database to fill it
thanks for your support โค๏ธ
NP! ๐ Sorry for the confusion
another question, do you know wich is the name of the field related to taxId? its not in the documentation, i tried taxId and tax_id
there is no error