#gruneth_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1313618044073021512
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- gruneth_code, 2 hours ago, 13 messages
Hi there ๐ is there a bit more context? Are you accepting PayPal through the Payment Element + Address Element, or are you using something different for those like the Express Checkout Element?
This setup intent I used with PayPal and there is no address: "seti_1QS3VNA86yrbtIQrTxqMmo44"
No I'm using payment elements + address elements.
Somehow when using the test credit card I can fetch the address but when I use test PayPal and still provide informations from the address element and later in my webhook try to read the address its empty.
Can provide you with two examples of setup intent ids if you like
May found my mistake one secound.
๐ I'm going to keep digging into the intent you shared while you check that
Found my mistake
const paymentElement = this.elements.create("address", {
mode: "billing",
blockPoBox: true,
fields: {
phone: 'always',
},
validation: {
phone: {
required: 'always',
},
},
});
I did:
mode: "shipping",
Ah, gotcha. Good spot!
Somehow when using credit card it is used as shipping and billig at the same time. When using paypal I need billing.
All fine
Thanks a lot for your time. Sorry for wasting it.
Don't worry you didn't, we're here to help!
May I ask a follow up question:
const paymentElement = this.elements.create("address", {
mode: "billing",
blockPoBox: true,
fields: {
phone: 'always',
},
validation: {
phone: {
required: 'always',
},
},
});
I can collect the phone number from the customer. Is there any way that stripe confirms the existance of the phone number? For example by sending a text with an one time code and when the customer inputs the one time code it is given that he has access to that phone number? I'm a bit scared that a customer may inputs a fake or wrong phone number.
No, we don't do that.
Alright. Would you recommend collecting a phone number? Not sure if its a waste of time if they may input a wrong number or a fake one.
Depends on your flow. If you need a phone number for your business purposes then collecting one sounds like the right approach.
Thank you, hope you do the same!