#wangtao
1 messages · Page 1 of 1 (latest)
Hi there 👋 you can prefill the data that you've collected previously when creating the Payment Element by setting them in defaultValues.billingDetails:
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-defaultValues-billingDetails
Thanks, I'll take a look
Meanwhile, is there any way to build my own payment form?
LIke I would like to be able to charge the user different amount of money, if they choose a certain payment gateway, that seems to be really hard to achieve using payment element
You're correct, that is a challenging with the current implementation of the Payment Element. If you build your own payment forms (without using Stripe Elements) then your system that handles payment method information must be PCI compliant:
https://stripe.com/guides/pci-compliance
That's a burden that normally Stripe carries because when you use our Elements all of the payment method information only touches our systems.