#_erichu
1 messages · Page 1 of 1 (latest)
Do you have the necessary PCI compliance to handle credit card data? https://stripe.com/docs/security/guide
Thanks for your reply. I don't have it know but will definately investigate
You're likely not going to want to do that (hence why people using PSPs like Stripe which handle the PCI compliance)
So if I have the PCI compliance, is it possilbe with Stripe?
Sure
May I ask how? Is there any custom API?
Once you've validated your PCI compliance with us, your account would be gated to access the API parameters that allow you to pass raw card data
Otheriwse it's private
I see, thanks!
Hi, I'm using Stripe Payment Element to handle payments, I would like to know if there is any way to set a default value to this field? SInce I already have user's name in address field, it doesn't make sense to ask them to input their name again:
Image
For your other question, you should be able to set defaults when you intialise the Payment Element: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-defaultValues-billingDetails-name
There isn't a way to prefill it unfortunately. Typically for things like this, the pattern that I have seen is to hide that field from the Payment Element and then to pass in your value for that field to the confirm call when you are confirming the intent
Ah nevermind, I was wrong. We have added a way to prepopulate that field https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-defaultValues-billingDetails-name
Though you can still do the solution that I mentioned. That would involve setting fields.BillingDetails.name to never https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-name
And providing the name in confirmParams.payment_method_data.billing_details when confirming https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
Ah, so you mean it's been added just recently?
As far as I know, yes
Great! Thanks for your help!
Can I customize the font used in payment element though?
I want to use DM Sans
Sure, you can use custom fonts with the Appearance API: https://stripe.com/docs/elements/appearance-api & https://stripe.com/docs/js/elements_object/create#stripe_elements-options-fonts
Great, got it, that's all my questions.