#sze_wong
1 messages · Page 1 of 1 (latest)
Hello! Can you give me a Payment Intent or Charge ID I can look at which has the statement descriptor issue?
Is this the charge id? pm_1NMFrjFJnyNQbmPXmm57Y6mh
It's a test product. I am trying to figure out if Statement Descriptor works
That's the Payment Method ID.
Can you find the ID starting with either pi_ or ch_?
pi_3NMFrjFJnyNQbmPX0db5qRlN
That's it! Looking...
It's in Test mode.
What are you expeciting the statement descriptor on this to be?
The Product statement descriptor is only used for recurring payments on Subscriptions. For one-time payments in Payment Links the statement descriptor set on your account is used.
OK. so there is no way to set different statement descriptor for one time payment.
Actually all I want to do is to be able to run a report from payments that tells me what the customers have purchase.
I couldn't find a way to list the products associated with the charge, and I found the statement descriptor within product so I thought I would try to use it.
Is there a simple way to know which product was purchased from a payment?
You mean starting from a Payment Intent ID, how do you get the product(s) purchased in Checkout?
You can find the associated Checkout Session by listing them and fitlering by payment_intent: https://stripe.com/docs/api/checkout/sessions/list
And you can expand the line_items when you do that to get details about what was purchased: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items
Yep.