#QuiTe
1 messages · Page 1 of 1 (latest)
hello! you can retrieve the PaymentIntent and expand [0] the PaymentMethod to see most of those information in the response : https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method
$result = \Stripe\PaymentIntent::retrieve($request->get($payment_intent, ['expand' => ['payment_method']]);
I use this code and do not get payment_method object (PHP)
can you share the request_id for request made by the above code?
do you mean payment intent Id?
the request id looks like req_xxx : https://stripe.com/docs/api/request_ids
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This is the request ID req_1wJLmsRfZpBfy0
your format probably isn't correct - the expand parameter isn't being passed into the request : https://dashboard.stripe.com/logs/req_1wJLmsRfZpBfy0
i'm not too familiar with the legacy approach [0] off the top off my head, but the below is how it would look using StripeClient
$stripe->paymentIntents->retrieve(
'pi_...',
["expand" => [
"payment_method"
]]
);
$stripe = Stripe::setApiKey($secretKey);
$result = \Stripe\PaymentIntent::retrieve($payment_intent, ["expand" => ["payment_method"]]);
This is my code
i use "stripe/stripe-php": v7.86.0
this works for me
\Stripe\PaymentIntent::retrieve(['id' =>'pi_...', 'expand' => ['payment_method']]);
I have no idea. But i use other way and it works. Thank for your help
But i do not see Bank account info
that's not available by default - what are you planning to use that information for?
I want this information to make a report for my manager
you can email https://support.stripe.com/contact/email to ask them if it's possible to get access to the issuer information
Thank you