#Serdar

1 messages · Page 1 of 1 (latest)

granite heraldBOT
tepid lotus
#

Is there an error you're receiving from the API?

hazy bronze
#

It always says the payment intent has not been found

#

The ID is

#

py_1MhUDwRmxrL0pbNrWtm6jEc4

#

and the stripe connect account id is

tepid lotus
hazy bronze
#

acct_1MJXXJRmxrL0pbNr

#

the request is working fine but for this specific ID its not working

tepid lotus
#

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

hazy bronze
#

We are not sending http requests

#

we are using the javascript library

tepid lotus
#

Well that still makes network requests to the API

#

There'll be errors in your logs. Please share the req_xxx

hazy bronze
#

req_5YZVc0vaD45um6

tepid lotus
#

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

hazy bronze
#

Not over charges api?

#

Or is that not ever possible ..

tepid lotus
#

Yes, you'd use the Charges API. But that requires your secret key and isn't possible via Stripe.js

hazy bronze
#

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 ..

tepid lotus
hazy bronze
#

Yes and i only can get the py_xxx object over the api ? right?

tepid lotus
#

Correct, but it seems you've already retrieve that ID somehow. So when you do that, just expand: ['payment_intent']

hazy bronze
#

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

tepid lotus
#

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

hazy bronze
#

no no just server side

tepid lotus
#

I'm confused why you think it shouldn't work then?

hazy bronze
#

when i try to get the payment intent

#

like this it is still null

#

seems like this object does not have a payment intent

tepid lotus
#

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?

hazy bronze
#

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 ..

tepid lotus
#

That will help you reconcile all payments in a single Payout

hazy bronze
#

let me test this