#walpoletim-paymentelement

1 messages · Page 1 of 1 (latest)

odd obsidian
#

how does this tie into the <PaymentsElement /> react node though

#

if U use both I get error saying not able to create multiple nodes

carmine temple
carmine temple
odd obsidian
#

I tried this <PaymentElement id="payment-element" onChange={handleChange} options={{ fields: { billingDetails: { // name: 'never', // email: 'never', postalCode: 'never' } }} } />

#

but this still presented the postcode element

carmine temple
#

postalCode should be inside an address object like the structure in the reference I linked

odd obsidian
#

thats as per the example here...

carmine temple
#

not sure what you mean

odd obsidian
#

thats the payment elemtn - with options provide

carmine temple
#

wouldn't it be

billingDetails: {
  address: { 
    postalCode:"never"
 }
}

?

carmine temple
#

postal code is in the address object, like it says in the link I posted

odd obsidian
#

:):)

#

missed that - perfect - let me try :):0

#

than k yo