#Sharvan Choudhary
1 messages · Page 1 of 1 (latest)
Hi, could you elaborate which integration are you using? Is that PaymentElement or Card Element?
i'm using this but i don't want line 1 ,line 2 and city and state . but there will be country and according to country there will be postal code
Um I don't think you can customize that. it's default built into the AddressElement. You can prefill values though, https://stripe.com/docs/elements/address-element/collect-addresses?platform=web#prefill-address-form
https://checkout.stripe.dev/preview i want this type of card how can i achive that
Preview some of the features available in our prebuilt, hosted payment page.
yes i know but i'm saying that i want to make this type of card can i make with the help of stripe.js
i want to make this type of ui
Umm I see, but that's a prebuilt UI and not really available for embeded (It's a Stripe hosted page)
i think you haven't got my point i'm saying that i want to develop this type of ui not completely checkout jud the ui is there is any way i can achive that
I get it! Sorry if it's confusing! It's just that AddressElement doesn't have the same behavior of only displaying Country
is there any other element which i can use to achive that
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements PaymentElement could be closer
Means collecting address inside the PaymentElement, vs. using AddressElement as a separated section
thank you for helping me but i don't to use paymentElemt because it don't give desired output is there any other way ?
Umm AddressElement is not customizable as you described, sorry
other than that ??? any other option to achive that
what kind of element does stripe checkout use??
It's not any element, it's ... just Checkout, as I meant it's a completely different product
Hey sorry for not having an answer you want, but really I don't think AddressElement can be customized to only have country and postal code
other than addressElement ??
All the options I listed above, but you have reasons to not using them
if i want to make a coustom card without any help of element i have card number input box expiry n cvv from stripe but how can i implement that country and zostal code
I'm not sure what you're asking me. You shouldn't be handling raw card data and passing them directly to the API like that
sorry from my side if it's confusing! i want to make a coustom card with help of element i have card number input box expiry n cvv from cardNumber , cardExpiry, cardCvc element
but how can i implement that country and zostal code
We don't have separate Elements for collecting country and postal codes if you're using those split fields