#Matty-PaymentElements
1 messages ยท Page 1 of 1 (latest)
heya @little citrus! we require setting up a PaymentIntent first because the Payment Element needs to know certain details to determine the Payment Method(s) to display as an option
OK. That makes sense... I hate making calls if they're unnecessary. ๐
I assume that it's ok to have abandoned intents when someone chooses to not continue checkout?
yep, that's totally fine
Is there a way to not have country and zip shown for the card collection by passing that to the setup intent?
you can choose to not collect it, let me find the parameters for you
Thanks. I am testing by setting up the intent with the shipping info, but that obviously doesn't work. ๐
You should be able to disable collection of those details by specifying never in the relevant fields [1][2].
[1] https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-customized_fields-fields-billingDetails-address-country
[2] https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-customized_fields-fields-billingDetails-address-postalCode
OK. Last question... maybe? I'm passing the shipping information to the intent for Afterpay, but it is still asking for name, country and address. When I setup the intent for JUST Afterpay, it doesn't request this information, the user is just redirected to their site on submit.
Never mind... looks like setting address: 'never' worked! Thank you for your help! Have a great night.
Hello, stepping in and catching up
I think I'm all good. You can close this thread. Thank you!