#usmseong_29857
1 messages ยท Page 1 of 1 (latest)
Hi ๐ I haven't specifically tried that combination, so I can't say either way. Are there troubles you're running into while exploring that approach? Offhand, I don't think the Express Checkout Element functions with Setup Intents.
Yes I'm able to confirm it works however Billing Information is empty from onConfirm function however when I use PaymentRequestButtonElement component I can get it through 'paymentMethod' object that has billing details
Oh, sorry, I didn't realize the focus was specifically on billing details rather than the overall flow in general. Are you using the options shown here to request additional billing information?
https://stripe.com/docs/elements/express-checkout-element/accept-a-payment#handle-click-event
oh i missed this! but i don't see billing address part ๐ค
i see this but this is for recurring payment?
Ah, sorry, billingAddressRequired is set to true by default, I forgot about that.
currently, I don't pass anything to resolve function on onClick but i have onConfirm prop but arguments that are available in onConfirm don't have anything useful for billing address
onConform = (a,b,c,d,e) => {
console.log({a,b,c,d,e)}
...
}
<ExpressCheckoutElement
onConfirm={onConfirm}
onClick={onClick}
options={{
buttonType: {
applePay: 'plain',
googlePay: 'plain',
},
layout: {
maxColumns: 1,
maxRows: 1,
},
paymentMethodOrder: ['apple_pay', 'google_pay'],
}}
/>
Trying to wrap my head around this. So the billingDetails in the confirm Event are not working for you, or not being populated?
https://stripe.com/docs/js/elements_object/express_checkout_element_confirm_event#express_checkout_element_on_confirm-handler-billingDetails
that is correct, I don't have any billing information in the confirm method
๐ stepping in here as toby needs to step away
Can you show me what you receive in your onConfirm() Event?
this is frustrating ๐ฆ I'm getting this all of a sudden.. I haven't updated anything however yesterday it was working. this seems to be intermittent. This happend last week however it got resolved by itself
^trying to confirm so that I can share the conosle what I receive in onConfirm event
Can you show me your client-side code?
hope this helps
That all looks fine from a glance. Is there a URL I can visit to test from my side?
unfortunately no since this is not released yet it's in development enviornment that requires VPN ๐ฆ
If you go to https://stripe.com/docs/stripe-js/elements/payment-request-button are you able to complete a Google Pay transaction?
(Using the Google Pay button at top of the page)
Or do you see the same error?
yes it works on the link as expected
Okay then the only reason you would see that error is due to a bug in your code.
You aren't trying to fire an alert or anything are you?
nope. the thing is onConfirm is not even called this case
Well right but that is because there is some error happening
You are calling an onClick handler currently but don't have an onClick handler established.
Have you pared down your Express Checkout Element to its most basic implementation?
yes I'll try but could you elaborate more on "but don't have an onClick handler established."?
also, this error also happens with PaymentRequestButtonElement as well.
the QA team started seeing this issue when there has been no changes since last deployment.
I just mean you are calling onClick but you don't have an onClick function established in your code
Overall if there isn't somewhere we can reproduce then we can't help a whole lot. The best thing to do is for you to create a fresh project to test with so that it has nothing else interacting with it and build a bare-bones Express Checkout Element integration and ensure that works.
Then work from there and you can figure out what is causing this error.
yup I understand. let me try a couple things you mentioned
hello while I was doing some stuff, I tried a Google Pay transaction on the Stripe website that you shared, even here it's not working
wonder if it's something else than my code..? ๐ค
Hi ๐
My colleague had to step away
So this is something you see when attempting to complete a GPay transaction in the Stripe site?
yes this is intermittent though
i tried 4 times and they all didn't go thru but this time it worked
Can you try with your browser console open and share any error messages you see there?
i'm sure folks on your end can also replicate this as my other team members are seeing the same behaviour on Stripe doc
I have reproduced the error you are seeing and have reached out to my colleagues about it
thank you. this issue happened last week as well
We're looking to release to production this week
Okay I have multiple colleagues reproducing this and we've raised it internally
thank you so much ๐