#usmseong_29857

1 messages ยท Page 1 of 1 (latest)

ruby portalBOT
flat bobcat
#

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.

undone garden
#

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

flat bobcat
undone garden
#

oh i missed this! but i don't see billing address part ๐Ÿค”

#

i see this but this is for recurring payment?

flat bobcat
#

Ah, sorry, billingAddressRequired is set to true by default, I forgot about that.

undone garden
#

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'],
        }}
      />

flat bobcat
ruby portalBOT
undone garden
#

that is correct, I don't have any billing information in the confirm method

mighty merlin
#

๐Ÿ‘‹ stepping in here as toby needs to step away

#

Can you show me what you receive in your onConfirm() Event?

undone garden
#

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

mighty merlin
#

Can you show me your client-side code?

undone garden
mighty merlin
#

That all looks fine from a glance. Is there a URL I can visit to test from my side?

undone garden
#

unfortunately no since this is not released yet it's in development enviornment that requires VPN ๐Ÿ˜ฆ

mighty merlin
#

(Using the Google Pay button at top of the page)

#

Or do you see the same error?

undone garden
#

yes it works on the link as expected

mighty merlin
#

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?

undone garden
#

nope. the thing is onConfirm is not even called this case

mighty merlin
#

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?

undone garden
#

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.

mighty merlin
#

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.

undone garden
#

yup I understand. let me try a couple things you mentioned

ruby portalBOT
undone garden
#

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..? ๐Ÿค”

elfin tulip
#

Hi ๐Ÿ‘‹

My colleague had to step away

#

So this is something you see when attempting to complete a GPay transaction in the Stripe site?

undone garden
#

yes this is intermittent though

#

i tried 4 times and they all didn't go thru but this time it worked

elfin tulip
#

Can you try with your browser console open and share any error messages you see there?

undone garden
#

i'm sure folks on your end can also replicate this as my other team members are seeing the same behaviour on Stripe doc

elfin tulip
#

I have reproduced the error you are seeing and have reached out to my colleagues about it

undone garden
#

thank you. this issue happened last week as well

#

We're looking to release to production this week

elfin tulip
#

Okay I have multiple colleagues reproducing this and we've raised it internally

undone garden
#

thank you so much ๐Ÿ™