#anubhavshakya

1 messages · Page 1 of 1 (latest)

little crownBOT
distant ore
#

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?

stiff wave
#

Yes, I am using payment element.

#

Give me one minute, for the payment intent id

#

pi_3NH1ICCSNy5Hcuox0OHH1YPG

#

Please check this.

little crownBOT
stiff wave
#

is anyone there ?

civic pasture
#

yes, we're looking

distant ore
#

And therefore it won't show in the Payment Element

stiff wave
#

Okay, Let me check

#

I have turn on... but still it is not working.. here is new payment intent id pi_3NH1cCCSNy5Hcuox0XliqtZK

distant ore
#

Where are you located?

stiff wave
#

India... but all the payments on our production happening from United States

distant ore
#

To confirm, you're completing the Link Auth Element with the same email address that you previously setup with Link?

#

And nothing happens?

stiff wave
#

yes

distant ore
#

Are there any errors in your browser console indicating an issue? Can you share a screen recording of the issue

stiff wave
#

I have not seen any error on browser console. Is link supported in '2020-03-02' api version...

distant ore
#

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

stiff wave
#

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

distant ore
#

And this.userContext.spaceEmail is definitely the correct email address associated with a Link account?

stiff wave
#

yes

#

Let me clear some things

  1. I am testing this on test stripe account.
  2. I am from India.
distant ore
#

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