#akram.alsaidi

1 messages ยท Page 1 of 1 (latest)

light ruinBOT
tepid orbit
#

Hi there!

#

You want to retrieve a Price of a connected account?

teal bough
#

yep

tepid orbit
teal bough
#

this api for retrive price if i have the price

#

but with this endpoint can not ?

tepid orbit
#

Sorry I don't understand your question.

#

Can you rephrase?

teal bough
#

I need price id if the stripe account has product

tepid orbit
teal bough
#

No#

#

this example

#

i need to make payment under this stripe account

#

but to do that i need the price id for this account

#

how can i bring it ?

tepid orbit
teal bough
#

like this ?

tepid orbit
#

Yes, looks correct to me

teal bough
#

if the stripe account has more than one price id

tepid orbit
teal bough
#

thanks perfect

light ruinBOT
tepid orbit
#

Happy to help ๐Ÿ™‚

teal bough
#

how we can retrive the lated one

#

latest price id

limber merlin
#

What do you mean by 'latest'?

#

The most recently created?

teal bough
limber merlin
#

The list endpoints always return results chronologically with most recent first

#

So the first in the list is the most recent

teal bough
#

yes i did by limit 1

#

thank you all good

#

we can pass with what value ?

limber merlin
#

Which parameter?

teal bough
#

product currency

limber merlin
#

Well currency would be a string (like usd) and product accepts a prod_xxx ID

teal bough
#

Perfect

#

thanks

teal bough
#

$stripe_account = $this->stripe->accounts->retrieve(
'acct_1Nuw4YEQv8YUivNT',
[],
['type' => 'standard']
);

#

this is correct if we are need to retrieve stripe type standard ?

limber merlin
#

Well if you have the ID you don't need to pass other parameters

teal bough
#

also how we can know the status is enable or not ? for the account ?

limber merlin
#

Depends what you mean by 'status'?

teal bough
#

we have data now but what about status

#

status =

#

payouts_enabled: true ?

#

like this

limber merlin
#

Did you read the doc I sent? There's no one field that maps to account status like the Dashboard badge

teal bough
#

yes i know that

#

but how we can know if the user completed the account or not

limber merlin
#

It explains it at the link I shared, please read the document

teal bough
#

if the account saved but not complete so we not allow the user to create other one in our platform

teal bough
#

with requirements all good but we need doc ?

limber merlin
#

Yes, seems like you will eventually need to provide ID for that account to verify

#

So you'd listen for account.updated events for then those requirements become due and then re-onboard the user again to provide the ID

teal bough
#

yes perfect i understood now

#

i am happy

limber merlin
#

Great!