#edgar-paymentelement-linkdeferredsubscription
1 messages · Page 1 of 1 (latest)
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
Is Link enabled in livemode here?
Yup. Do you have a URL for prod where I can see the form that's not showing LInk?
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
Ahhhh, okay. You may need to log out of Link: https://app.link.com/login
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
Okay, so it's still not showing up? Are there any console errors in the browser?
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?
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
No worries! Just let me know when I can attempt to login
@gusty flax The google pay button on that page, is it PaymentRequestButton or something else?
its express checkout
okay and the email field, that's your own?
no, its link authenticatio element
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.
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>```
are you prefilling the email with something? Like do you expect that email address to work in the first place?
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
yeah but in Test mode it's all fake Link accounts
Has this ever worked in production?
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
im afraid not, i cant push to prod
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
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?
wdym, thats local with only link auth element and payment element
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
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
.
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
also, some times after x amount of time, google pay just dissapears
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
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?
no if you did it for Apple Pay then it works already for Link
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?
I wonder if it's because you're using mode: 'subscription' and you have Link disabled in your Invoice template settings on that account: https://dashboard.stripe.com/settings/billing/invoice
yeah I debugged this locally and can reproduce easily with mode: 'subscription'
edgar-paymentelement-linkdeferredsubscription