#kr0nos_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/1362243422773186841
๐ 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.
- kr0nos_code, 17 hours ago, 4 messages
hello! You mentioned you're having trouble getting the name from billing details from the express checkout element - Have you set billingAddressRequired:true when creating the Express Checkout Element?
No i havent, im confused about that part because I need to set shipping rates? But this is for a donation form, there are no shipping rates
I swear like a month ago, i was able to test using googlepay using my own card, now it only shows test cards so i cant test this feature lol
no, you don't need to set shipping rates, where are you seeing that you need to set shipping rates?
the test cards have billing addresses set, so you should be able to test this feature also
it says its on by default though?
ah yeah, that's true, sorry i missed that. Let's take a few steps back first, your code has a comment with the phrase Express Checkout form, can you confirm what's the value you're passing into elements.create('value_here?')
im using the react components
<ExpressCheckoutElement
options={{
paymentMethods: {
link: "never",
googlePay: "auto",
applePay: "auto",
},
paymentMethodOrder: ["googlePay", "applePay"],
buttonType: {
applePay: "donate",
googlePay: "donate",
}, //@ts-ignore emailRequired is correct
emailRequired: true,
phoneNumberRequired: true,
addressRequired: true,
billingAddressRequired: true,
}}
onConfirm={onConfirm}
className="hover:scale-105 transition-all duration-200"
/>
okay, gimme a moment to spin up my own example
Would you like to see the whole component? its not too large. Basically it submits the element, then creates a payment method, then creates a customer using the paymentmethod.billingdetails, and creates a payment intent with that
it's alright, I don't think i need the whole component right now, it just takes a while for my example to get up and running
so when you create the PaymentMethod, you're not seeing the billing details inside the PaymentMethod?
maybe can you elaborate a bit more on the exact issue you're facing when you say you're having trouble getting the name from billing details?
Im testing it right now and it looks like it actually is working on my end, but my partner is using it on his computer with apple pay and its not working. is apple pay different from gpay?
it should be the same, but again, what specifically is not working?
do you not see the billing details in the payment method you've created and logged?
I have this set: const name = billingDetails?.name || "Unknown Customer"; and on his end its saying the name is unknown cstomer, so its not finding the name from billing details
It is working on my end using gpay
can you share the PaymentMethod id for the one you've tried with Apple Pay?
pm_1REhlhFbEIjfTuZGPkU7S60P
Thats so weird, I add the billing details as metadata to the payment intent, and my payment using gpay shows the name and address and everything from billing detaiils, but his apple payment shows unknown
Does your partner's card in Apple Pay have the billing details?
I'm trying with my own example, and my card has the billing details already. It does show up in the PaymentMethod when it's created. Interestingly when I look at that PaymentMethod id you shared with me, it doesn't have any billing details
glad we managed to figure it out ๐
haha, thanks again man. Have a good night!