#iandk

1 messages · Page 1 of 1 (latest)

slim fulcrumBOT
#

Hello! 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.

  • iandk, 10 hours ago, 17 messages
nocturne ice
#

Hi, let me help you with this.

#

Where do you want to show it?

brisk tendon
nocturne ice
#

Link is different from Payment Methods attached to a Customer objects saved on just your account. Instead, Link payment methods are used by customers across all Stripe accounts.

brisk tendon
#

how would I offer him to select his previously used methods there?

nocturne ice
#

You can enable Link and not worry about anything else.
Or, if you want to specifically show the Payment Methods saved for the customer on your account, you will have to build a list of Payment Methods yourself.

brisk tendon
#

I did implement Link, but its not showing

nocturne ice
#

Again, the main question, are you looking to use Link, or display your own PMs?

brisk tendon
#

Link would be fine for now

nocturne ice
#

Ok, let's see why it's not showing. Where do you expect to see it exactly?

brisk tendon
#

I did follow the guide where it would show somewhere near the payment-element

<template #content>
                <form id="payment-form">
                    <div id="link-authentication-element"></div>

                    <div id="payment-element">
                    </div>
                    <div id="payment-message" class="hidden"></div>
                </form>
            </template>
nocturne ice
#

Could you please share the PaymentIntent ID pi_xxx?

brisk tendon
#

pi_3OVBHxCaKPzbNr2f0m6Wh7xj

slim fulcrumBOT
quiet osprey
#

Hey! Taking over for my colleague. Let me catch up.

quiet osprey
#

Could you please share the exactl guide you are following ?

#

in order to understand what flow exactly you want to integrate ?

quiet osprey
#

That guide doesn't have link authentification link-authentication-element like you were mentioning in your code snippets

brisk tendon
#

it does

quiet osprey
brisk tendon
#

I think this is the guide I followed

quiet osprey
#

Ah I don't know what happened but when I opened your previous link, it opened for me another page.

#

Yes that's a good one sorry

#

Can you share some screenshots of your webpage ? or if possible to access it from a live (test) endpoint ?

brisk tendon
#

Can I send you the details as a private message?

#

Here is another pi
pi_3OVCAYCaKPzbNr2f1vAUAxAC

quiet osprey
#

Did you activate link in your dashboard ?

brisk tendon
#

not sure, where can I check?

quiet osprey
brisk tendon
#

It was disabled. I just enabled it but its still not showing

#

I did verify the domain

quiet osprey
#

I invite you to share with me a test endpoint and all the steps required in order to reproduce it

brisk tendon
#

Yea, how can I send you the details?
I would prefer not sending it in a public thread

quiet osprey
#

You can share the test endpoint here with no worries

#

then you can delete it

brisk tendon
#

let me know if you can access it

#

Can you check console?
I think its an issue with the certificate and vite.
You might have to open one of the failed vite urls manually and accept the cert

slim fulcrumBOT
quiet osprey
#

I inivte you to share with us a clear and working way in order to reproduce the issue and understand your integration

brisk tendon
#

I followed every step in your guide.
The code is pretty much identical and I attached it above

quiet osprey
#

Yes I understand that, but we need a clear way in order to reproduce the issue you are facing.

brisk tendon
#

I can provide you the login details, I just dont want to post them in a public thread here. So if you give me some way to send them to you directly

wanton gale
#

we have some other plans in future to directly embed saved cards in PaymentElement but at the moment it would be manual like that; and separately, Link exists yes

brisk tendon
#

Does this work with cards only or other payment methods as well?

wanton gale
brisk tendon
#

I'm dealing with one time charge

wanton gale
#

yeah, but you're charging a saved payment method, I'm only referring to "recurring" here to differenciate from payment methods that are only compatible with one-time payments and couldn't be saved to Customer objects or used in future payments

brisk tendon
#

pm_1OVD4TCaKPzbNr2f1UPuhedB

Would this be the id I need to pass to the stripe js client to confirm the payment?

wanton gale
#

yes

brisk tendon
#

Seems to work just fine with cards.

One more question regarding stripe.confirmPayPalPayment.

After confirming/ declining the payment I will be redirected to the specified url.

How can I determine if the payment was successful on the frontend?
With the card implementation I can access result.paymentIntent.status as the page does not refresh

wanton gale
#

there are query parameters with the PaymentIntent ID that we add to the return URL and then you can access those and call the retrievePaymentIntent function to check status

slim fulcrumBOT
brisk tendon
#

I see now, thank you.
Is it safe to store the clientSecret in lcoal storage?