#mnatanek
1 messages · Page 1 of 1 (latest)
Hello
The py_xxxx is the ID of the Charge
What are you trying to do exactly?
Are you trying to show the Transfer description in the Express Dashboard?
I wanna to add Description for this charge
Yes I tried, but I see "No description" always
I am using it in this way
$stripe->paymentIntents->create([
'amount' => 1000,
'currency' => 'usd',
'automatic_payment_methods' => ['enabled' => true],
'transfer_data' => ['destination' => '{{CONNECTED_ACCOUNT_ID}}'],
]);
can I put the description for the transfer_data?
No
After you confirm the PaymentIntent you want to get the latest_charge.transfer and look at the destination_payment (https://stripe.com/docs/api/transfers/object#transfer_object-destination_payment) of the Transfer. That will be the ID of the payment on the Connected Account
Then you update that payment's description like in the above doc: https://stripe.com/docs/connect/customize-express-dashboard#set-custom-descriptions
That doc explains exactly how to do this so please give that a read
Ok, Thanks