#kr0nos_code

1 messages ยท Page 1 of 1 (latest)

lethal knollBOT
#

๐Ÿ‘‹ 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.

long relic
#

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?

heady nacelle
#

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

long relic
#

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

heady nacelle
#

ahg, im thinking of shippingAddressRequired

#

1 moment

heady nacelle
#

it says its on by default though?

long relic
#

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?')

heady nacelle
#

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"
/>

long relic
#

okay, gimme a moment to spin up my own example

heady nacelle
#

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

long relic
#

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?

heady nacelle
#

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?

long relic
#

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?

heady nacelle
#

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

long relic
#

can you share the PaymentMethod id for the one you've tried with Apple Pay?

heady nacelle
#

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

long relic
#

Does your partner's card in Apple Pay have the billing details?

heady nacelle
#

omg

#

thanks.

long relic
#

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

heady nacelle
#

it was the card he was using.

#

thanks for bearing with me man lol

long relic
#

glad we managed to figure it out ๐Ÿ˜†

heady nacelle
#

haha, thanks again man. Have a good night!