#tomh0027
1 messages · Page 1 of 1 (latest)
Hi 👋 what trouble are you running into?
I built payment elements, and it's showing this text by default
is there a way I can remove this? because I put it below the subscribe button
I believe using the terms parameter, and setting those values to never for each Payment Method's terms you don't want to display, is the approach to suppress that verbiage:
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-terms
but please let me know if that doesn't do what you're hoping.
ok thanks, let me try
can you tell me how to set options in React? is it for Element or PaymentElement?
You're setting the options for the Payment Element specifically rather than the entire Elements instance, so I believe PaymentElement is where you need to pass them.
never as string type?
Yes
do I need to set for each of the payment methods?
Yes
I have another question, is there a way I can reposition the payment methods? above the email input box?
Like changing the order their showed in? That's done via paymentMethodOrder:
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-paymentMethodOrder
Are you referring to your own email input field you've provided? If so that isn't possible, you won't be able to insert your own field into the middle of the Payment Element.