#-zk_api

1 messages ยท Page 1 of 1 (latest)

graceful hingeBOT
#

๐Ÿ‘‹ 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.

ionic owl
#

This is the screen that i'm talking about

humble beacon
#

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.

ionic owl
#

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

humble beacon
#

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

graceful hingeBOT
ionic owl
#

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

high plover
#

Hello
Catching up here..

ionic owl
#

hello hanzo, how are u doing

high plover
#

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?

ionic owl
#

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

high plover
#

What element are you using for Boleto payment?

ionic owl
#

on step 2 we create the payment element

high plover
ionic owl
#

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

high plover
#

ah whoops sorry about that

ionic owl
#

i wanna do something like this when i'm creating the payment form

high plover
#

is setting defaultValue not doing anything here?

ionic owl
#

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 โค๏ธ

high plover
#

NP! ๐Ÿ™‚ Sorry for the confusion

ionic owl
#

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

high plover
#

Not sure.. are you seeing any errors?

#

I don't think tax ID can be prefilled

ionic owl
#

there is no error