#hitarth_97327

1 messages · Page 1 of 1 (latest)

fringe kernelBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

sinful knot
#

hello! can you share a screenshot of what you mean by removing the postal code from the card payment?

weary shard
#

i want to appy the ""hidePostalCode === true"" but where can i puy this

sinful knot
#

where did you see this parameter hidePostalCode? what documentation are you referring to?

weary shard
#

here you can find this

#

are you getting my point

#

????

sinful knot
#

Can you share a screenshot of what you're seeing that you want to remove?

weary shard
#

ok

#

in screenshot remove zip code

sinful knot
fringe kernelBOT
weary shard
#

i have adding the postral code but its not correct
const paymentIntent = await stripe.paymentIntents.create({
postalCode: 'never',
customer: finalCustomerId,
amount: amount,
currency: 'gbp',
payment_method_types: ['card', 'klarna'],
metadata: metadata
})

fair bronze
#

That's not a parameter you pass on Payment Intent creation, but when you initialise the Payment Element in your client-side JS

weary shard
#

I need to put here
const stripeInstance = useStripePaymentElement({
// the stripe publishable key
stripeKey,
// the stipe options for the stripe element. It's recommended
// to put these in a more global place, so you can reuse them.
// the type is Omit<StripeElementsOptions, 'clientSecret'>
elementOptions: {
fonts: [
{
cssSrc: 'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap'
}
],
appearance: {
theme: 'flat',
variables: {
colorBackground: '#CFD8E6',
borderRadius: '0px',
fontFamily: 'IBM Plex Mono, Arial, sans-serif',
colorText: '#292421'
},
rules: {
'#klarna-tab': {
backgroundColor: '#F9B6CB !important'
}
}
},
},
// the element ref to mount stripe payment element on
elementRef: stripePaymentHtmlElementRef,
// the function to call to get the client secret
getClientSecret,
// the payment options to pass into stripe's confirmPayment
paymentOptions: {
confirmParams: { return_url: ${browserBaseURL}/success }
},
// the function to call after payment is successful
afterPayment
})

#

????

#

can you please answer

#

??

fair bronze
#

Please have some patience, we're busy helping others users too