#hitarth_97327
1 messages · Page 1 of 1 (latest)
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.
- hitarth_97327, 2 days ago, 21 messages
- hitarth_97327, 6 days ago, 15 messages
- hitarth_97327, 6 days ago, 8 messages
hello! can you share a screenshot of what you mean by removing the postal code from the card payment?
i want to appy the ""hidePostalCode === true"" but where can i puy this
where did you see this parameter hidePostalCode? what documentation are you referring to?
Can you share a screenshot of what you're seeing that you want to remove?
For context, that's the Payment Element. If you want to hide the postal code field, you can set never for this parameter when creating the Payment Element : https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-address-postalCode
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
})
That's not a parameter you pass on Payment Intent creation, but when you initialise the Payment Element in your client-side JS
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
??
Please have some patience, we're busy helping others users too