#alanx4654

1 messages · Page 1 of 1 (latest)

astral ospreyBOT
strange yacht
#

Hi there

cerulean glen
#

this livemode

strange yacht
#

Can you give me an example Checkout Session ID?

#

For one that you created?

#

Or a PaymentIntent ID?

cerulean glen
#

no checkout.session.completed?

#

I just paid

#

pi_3NVd9KDF9RqVVThE1sRRWImP

#

this is my PaymentIntent ID: pi_3NVd9KDF9RqVVThE1sRRWImP

#

It's a subscription , and customer said he paid,
but my server didn't got checkout.session.completed notification

strange yacht
#

Looking

#

Ah okay that PaymentIntent was created directly

#

Not via Stripe Checkout

#

So there won't be a Checkout Session for that

#

Looks like it re-used an already-saved PaymentMethod

cerulean glen
#

What do you mean Not via Stripe Checkout?

#

my customer use my paymentlink to subscribe

strange yacht
#

Not in this case. That PamyentIntent was created directly via your backend.

#

There was no Payment Link involved

cerulean glen
#

I checked the log and found that

#

maybe I restart my service and missing checkout.session.completed notification?

#

Why there's no retry automatically

strange yacht
#

Can you share that Event ID with me?

cerulean glen
#

evt_1NVd9PDF9RqVVThEo6DnjqWp

strange yacht
#

Okay my apologies. I was mixing up PaymentIntents previously. So yes, I can see that was generated via a Payment Link. It does look like the initial Webhook failed but there will be a retry in about 25 minutes

cerulean glen
#

OK, got it , thank you 🤗

#

Another question

#

how can I get customer's card info

#

I already expand response with latest_invoice、default_payment_method

#

But I can't got customer's card info, like last4 field

#

I'm using subscription to expand response : sub_1NVd9KDF9RqVVThETBvym66n

#

Any ideas?

strange yacht
cerulean glen
#

As you can see, I add default_payment_method in expand params

#

But there has no card info

strange yacht
#

Ah this is a Link PaymentMethod

#

So there won't be card info

cerulean glen
#

???

strange yacht
#

Are you familiar with Link?

cerulean glen
#

weird

strange yacht
#

It basically obfuscates away the customer's payment info.

cerulean glen
#

I have test before, and I can retrive the card info.....

strange yacht
#

And allows them to easily re-use payment methods

#

Hmm I would need to see the specific test you are talking about

#

Link should not return any card details

cerulean glen
#

this is the test link, same curl method

strange yacht
#

What does type say there?

#

Can you provide me that PaymentMethod ID?

cerulean glen
#

this is the test: pm_1NVA2GF85la2rsCN6ckWtWer

strange yacht
#

Right that is just a normal card PaymentMethod. Not a link PaymentMethod so it will return the card details

cerulean glen
#

this is the live: pm_1NVd9JDF9RqVVThEwixt3cds

#

No , both of them are paymentlink

strange yacht
#

They are created via a Payment Link but they are different types of PaymentMethods

astral ospreyBOT
cerulean glen
#

how to make it use card