#Anton Dekhtyar-ACH

1 messages · Page 1 of 1 (latest)

last prawn
#

👋 happy to help

thorny lotus
#

hi tarzan

last prawn
#

I don't have the answer on top of my head, let me look around for a sec

thorny lotus
#

i add readOnly. and now cant select testing bank account

#

all fields disabled

last prawn
#

yeah readonly is not just for those fields I'm afraid

#

would you mind testing something for me?

#

could you try to pass the defaultValues and for the fields.billingDetails pass never

#

and let's see what happens after confirming the PI

#

sorry but I'm really juggling

thorny lotus
#

like this?

last prawn
#

you could directly say fields: { billingDetails: 'never'} but yeah it's the same as what you sent

thorny lotus
#

fields are not rendered. "confirm" request submitting does not happen

last prawn
#

in that case I think the best way is to use fields: { billingDetails: 'never'} and pass the billingDetails to the confirmPayment function instead of the defaultValues

thorny lotus
#

but we have field address. if i add "never" to email, phone, name. and add billing details to confirmPayment. And client add adress in form. my billing_details and PaymentElemet billing details wil be merged?

last prawn
#

Oh I see what you mean

#

I'm not sure to be honest

#

based on this Details collected by Elements will override values passed here.

#

so I think they merge

thorny lotus
#

thanks