#ELAZHARI-charge-id
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ you should be able to get it via charges on the Payment Intent: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-charges
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
How can we help?
as you see i want to make a transfer and they told me that i need source_transaction parameter what i can do for it
as i see in the source of transaction is the charge id$
for a specific payment intent
So you have to pass in the Charge ID to the source_transaction, but right now you're passing in the Payment Intent ID.
You will need to check the charges.data hash for the ID. So the piece of data you're looking for should be in payment_intent[charges][data].id
there is any code for example
There isn't unfortunately. You'll want to try and log it out from here
okay
hmm
i'm using laravel hah and i need any example to understand more what i can do for it
if you have time can you do any api connection from your end just simple one to gie just a shot to what i can do
Unfortunately my PHP knowledge isn't very good, so I can't write the code for you
is there anyone who can help me ?
Are you running into any errors when you attempt to code it? What have you tried?
๐ It should be $intent->charges->data[0]->id