#asif_70741

1 messages · Page 1 of 1 (latest)

amber palmBOT
keen charm
#

Hello

#

Let's back up

#

Why do you want to create a PaymentMethod separately from confirmPayment() to begin with?

jagged girder
#

i want to pass in zip code from my own field instead of using stripe's zip field.

#

For that I am seeing i need to pass payment_method_data but when i pass payment_method_data the stripe portal shows as payment_method not being linked to it

keen charm
#

Hmm yeah I don't really understand. As you noted, you want to pass the Zip into payment_method_data but what do you mean by:

the stripe portal shows as payment_method not being linked to it

#

Are you hiding the postal code field in Payment Element when you do this?

#

Or are you still collecting postal code via that field as well?

jagged girder
#

That's right i use the elements by the following code how would i disable zip info on the stripe element?

const elements = useElements();

keen charm