#alanx4654
1 messages · Page 1 of 1 (latest)
Hi there
Can you give me an example Checkout Session ID?
For one that you created?
Or a PaymentIntent ID?
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
Looking
Ah okay that PaymentIntent was created directly
Not via Stripe Checkout
So there won't be a Checkout Session for that
It was created here: https://dashboard.stripe.com/logs/req_yGz0fbIsBNLf98
Looks like it re-used an already-saved PaymentMethod
What do you mean Not via Stripe Checkout?
my customer use my paymentlink to subscribe
Not in this case. That PamyentIntent was created directly via your backend.
There was no Payment Link involved
I checked the log and found that
maybe I restart my service and missing checkout.session.completed notification?
Why there's no retry automatically
Can you share that Event ID with me?
evt_1NVd9PDF9RqVVThEo6DnjqWp
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
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?
You can expand the default_payment_method for the Subscription: https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method
As you can see, I add default_payment_method in expand params
But there has no card info
???
Are you familiar with Link?
weird
It basically obfuscates away the customer's payment info.
I have test before, and I can retrive the card info.....
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
this is the test: pm_1NVA2GF85la2rsCN6ckWtWer
Right that is just a normal card PaymentMethod. Not a link PaymentMethod so it will return the card details
They are created via a Payment Link but they are different types of PaymentMethods
how to make it use card