#oranges13_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1248722988115689533
đ Have more to share? Add details, code, screenshots, videos, etc. below.
I also tried
this.addressElement.update({
defaultValues: {
address: {
line1: '123 Any St.',
line2: 'Apt #4',
city: 'Nowhere',
state: 'ME',
postal_code: '04567',
country: 'US'
},
phone: '5555555555',
}
});
``` which did not work
is this possilbe?
Hi, there is not a button that you can click on to pre-fill test data.
We have one, I was just wondering if it was possible to update the address element in this way
If not, what would you suggest? I guess I was under the assumption that we have to use the address element to collect billing information, but if we can use our own fields still.. how would I do that with the payment element?
Are you saying that when you set default values, https://docs.stripe.com/js/elements_object/create_address_element#address_element_create-options-defaultValues it is not working?
Using PaymentElements, you can disabled the address collection, https://docs.stripe.com/js/elements_object/create_address_element#address_element_create-options-defaultValues and use your own input to collect these deatils. Then, when you make the confirm call, https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details you would need to pass that information.
No, it is, but for testing a brand new user (who does not have default values) - we had a button for our testers to one-click-fill all the address fields with random data for testing.
We can't do that on page-load with defaultValues because we don't know whether or not this person is a tester or should use potentially saved data.
ok. I will try it with our existing fields then.