#Serdar
1 messages · Page 1 of 1 (latest)
Is there an error you're receiving from the API?
It always says the payment intent has not been found
The ID is
py_1MhUDwRmxrL0pbNrWtm6jEc4
and the stripe connect account id is
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
acct_1MJXXJRmxrL0pbNr
the request is working fine but for this specific ID its not working
Ok, but I need to see the API request that's failing to identify the issue. I suspect you're not passing the Stripe-Account header or using the API keys
Well that still makes network requests to the API
There'll be errors in your logs. Please share the req_xxx
req_5YZVc0vaD45um6
The issue is that py_xxx objects are not Payment Intents. This is a Charge object, and the error is unrelated to Connect etc
You wouldn't be able to retrieve that object via Stripe.js
Yes, you'd use the Charges API. But that requires your secret key and isn't possible via Stripe.js
hmm i understand
so how can get the payment intent, which is behind as example this transaction of a stripe connect account txn_1MhUDwRmxrL0pbNrEhpOyIF6
why i ask this: we want to generate for application fees invoices and would like to use the meta data we have in the original payment intent ..
There's be a payment_intent field on the py_xxx object: https://stripe.com/docs/api/charges/object#charge_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes and i only can get the py_xxx object over the api ? right?
Correct, but it seems you've already retrieve that ID somehow. So when you do that, just expand: ['payment_intent']
No i did not retrieve that object
Its not possible over stripe js .. what i dont understand
ah wait it works
why it should not
Well, it will work. But if you're makiing that call in client-side code you're exposing your secret key (sk_xxx) to anybody on your site and you should absolutely not do that
no no just server side
I'm confused why you think it shouldn't work then?
when i try to get the payment intent
like this it is still null
seems like this object does not have a payment intent
Looks like that py_xxx object reflects the transfer of balance between accounts relating to a Connect charge
So likely not a direct relationship to the PI. What is it you're trying to do exactly?
We have an application and on our application we have customers. For every customer we create a custom connect account.
And those can sell things over our plattform. From every payment we get x % as application fee.
And at the end when payouts are done, we want to create invoices and tell them like for the event X you have sold Y tickets .. and to get those information, we need the payment intent in which metadata we are saving stuff like event id
like this i get an object at the end of the original payment intent .. but it is not really efficient when i think about, that each payout can have over 300 transactions ..
You want to follow this guide, speficially the Connect part at the bottom: https://stripe.com/docs/expand/use-cases#charges-in-payout
That will help you reconcile all payments in a single Payout
let me test this