#edgar-paymentelement-linkdeferredsubscription

1 messages · Page 1 of 1 (latest)

cursive bisonBOT
#

Hello edgarsantiago93, we'll be with you shortly! 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.
edgarsantiago93, 1 hour ago, 15 messages
edgarsantiago93, 2 hours ago, 19 messages
edgar-elements-defaultvalues, 1 day ago, 6 messages
edgarsantiago93, 2 days ago, 8 messages

quick patrol
gusty flax
#

here?

quick patrol
#

Yup. Do you have a URL for prod where I can see the form that's not showing LInk?

gusty flax
#

yes, jsut a bit more bg , if i go to an incognito session i can see link

#

but in normal mode, i only see gogole pay

#

also, sometimes, after a couple of seconds, google pay disappears

quick patrol
#

Can you make sure you're logged out and then try again?

#

p.s. I deleted the message with the login info, since this is a public server. That being said, I have it saved and can use it if I need to to help troubleshoot

gusty flax
#

oh shoot, i forgot about that, thkns

#

im not logged in

quick patrol
#

Okay, so it's still not showing up? Are there any console errors in the browser?

gusty flax
#

nop

quick patrol
#

Okay, I lost the login info. Can you DM it to me so I can look it up on my end and poke at it?

gusty flax
#

yes!

#

oh let me confirm sth , bcause we have this feature flagged and you may not be able to see it from you end

#

ok so it might take a couple extra steps sorry

quick patrol
#

No worries! Just let me know when I can attempt to login

cursive bisonBOT
zenith geyser
#

@gusty flax The google pay button on that page, is it PaymentRequestButton or something else?

gusty flax
#

its express checkout

zenith geyser
#

okay and the email field, that's your own?

gusty flax
#

no, its link authenticatio element

zenith geyser
#

And you're using the defer intent integraton?

#

Any chance you can share the relevant bits of code? It's really hard to parse the code as is right now.

gusty flax
#

yes, we use react elements so rn we have this for options

    return {
      mode: 'subscription', // 'payment' or 'setup'
      amount: amount || 0,
      currency: 'usd',
      paymentMethodCreation: 'manual',
      captureMethod: 'automatic',
      loader: 'always',
      appearance: {
        theme: 'stripe',
        variables: {
          fontFamily: theme.typography.fontFamily,
        },
      },
    };
  }, [amount, theme]);

  return (
    <Elements options={options} stripe={stripePromise}>
      <PaymentForm
        ctaText={ctaText}
        loading={false}
        purchaseId={purchaseId}
        resumeId={resumeId}
        successCallback={successCallback}
        trialPeriodDays={trialPeriodDays}
      />
    </Elements>```
zenith geyser
#

are you prefilling the email with something? Like do you expect that email address to work in the first place?

gusty flax
#

yes,

// Element options
const linkAuthenticationOptions = useMemo<StripeLinkAuthenticationElementOptions>(() => {
return {
defaultValues: { email: defaultValues.billingDetails?.email || '' },
};
}, [defaultValues]);

#

works great in local , it automatically expands to reveal the pin input

zenith geyser
#

yeah but in Test mode it's all fake Link accounts

#

Has this ever worked in production?

gusty flax
#

correct, just local

#

nope this is the first time

#

that we are implmeneting it i mean

zenith geyser
#

okay, can you do a quick and simple repro that literally has just PaymentElement and LinkAuthenticationElement and none of the other code? It's going to be impossible to debug such a complex page honestly

gusty flax
#

im afraid not, i cant push to prod

zenith geyser
#

Sorry I don't want you to push anything to prod. I want you to work on the simplest possible reproduction locally on your end as a developer

gusty flax
#

yes

zenith geyser
#

I'm sorry I don't get what that picture does? Isn't that your real website with all the complex code around that picture already?

gusty flax
#

wdym, thats local with only link auth element and payment element

zenith geyser
#

I don't know you took a truncated picture with no context 😅

#

Right now all I have is the website you sahred with my colleague that we got totally lost trying to debug and parse so I'm asking if you have an extremely simple page that has those 2 elements and nothing else

gusty flax
#

oh no, we dont have that, the website i shared is live, thats tthe only place we can test bc on qa and local it all work s

#

we get this errror from time to time

zenith geyser
#

sure but you want help debugging so we now need to tear this apart together until we get to the problem, no other way really

gusty flax
#

also, some times after x amount of time, google pay just dissapears

zenith geyser
#

so the dirst step is for you to work on the simplest possible page that has those 2 elements and nothing else and then we can compare the behaviour between your Test and Live Publishable key

gusty flax
#

ok ill work on that

#

one question

#

on the domain verification page, it says that we need to add a domain for link as well

#

we already have the well known file for apple, do we need to update ir?

zenith geyser
#

no if you did it for Apple Pay then it works already for Link

gusty flax
#

i see

#

ok, so should i ping you when we have the core version?

zenith geyser
#

sure

#

@gusty flax just to be clear you're saying that there's a 100% certainty that the email address testingrr@mailinator.com you gave my colleague has a real Link account attached to it?

#

@gusty flax are you still around?

#

yeah I debugged this locally and can reproduce easily with mode: 'subscription'

#

edgar-paymentelement-linkdeferredsubscription