#anubhavshakya
1 messages · Page 1 of 1 (latest)
Can you share an example pi_xxx ID of where you expected Link to be available?
Also, I assume you're using the Payment Element?
Yes, I am using payment element.
Give me one minute, for the payment intent id
pi_3NH1ICCSNy5Hcuox0OHH1YPG
Please check this.
is anyone there ?
yes, we're looking
You don't have Link turned on here: https://dashboard.stripe.com/test/settings/payment_methods
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
And therefore it won't show in the Payment Element
Okay, Let me check
I have turn on... but still it is not working.. here is new payment intent id pi_3NH1cCCSNy5Hcuox0XliqtZK
Where are you located?
India... but all the payments on our production happening from United States
To confirm, you're completing the Link Auth Element with the same email address that you previously setup with Link?
And nothing happens?
yes
Are there any errors in your browser console indicating an issue? Can you share a screen recording of the issue
I have not seen any error on browser console. Is link supported in '2020-03-02' api version...
Sure, API version isn't an issue here (PMs are generally backwards compatible)
Lastly can you share your front-end code that includes the Payment Element and Link Auth Element
Yes
this.elements = this.stripeObj.elements(this.stripeOptions) // stripeOptions is a object contains client_secret const linkAuthenticationElement = this.elements.create('linkAuthentication',{defaultValues: {email: this.userContext.spaceEmail}}); linkAuthenticationElement.mount("#link-authentication") const paymentElementOptions = { layout: { type: 'accordion', defaultCollapsed: true, radios: false, spacedAccordionItems: true }, fields: { billingDetails:'never' }, business: { name:'My New Business' }, terms:{ card:'never' } } this.paymentElementData = this.elements.create('payment', paymentElementOptions) this.paymentElementData.mount('#payment-element')
**and for payment confirmation... => **
let paymentResult = await this.stripeObj.confirmPayment({ elements:this.elements, confirmParams:{ return_url:window.location.href, // This is will work only when bank redirect payment method attach for that we need to handle (Not Implemented Yet) payment_method_data:{ billing_details: { address: { city: null, country: null, line1: null, line2: null, postal_code: null, state: null }, email: null, name: null, phone: null } } }, redirect:'if_required' // if user choose redirect payment method then return_url will work. if not then this will return a payment intent })
Please Check
And this.userContext.spaceEmail is definitely the correct email address associated with a Link account?
yes
Let me clear some things
- I am testing this on test stripe account.
- I am from India.
Yup, neither of those things should prevent Link from working. I think in this instance we've likely exhausted all support options we can offer on Discord, and I'd recommend you write in to my team so we can investigate this further: https://support.stripe.com/contact
It'd be super helpful if you could include a link to somewhere where we can reproduce the issue, too
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.