#akram.alsaidi
1 messages ยท Page 1 of 1 (latest)
yep
Then you'll use this endpoint: https://stripe.com/docs/api/prices/retrieve
And make sure to use the Stripe-Account header as explained here: https://stripe.com/docs/connect/authentication#stripe-account-header
I need price id if the stripe account has product
You want to list all Prices of a connected account? Then it's this endpoint: https://stripe.com/docs/api/prices/list and again make sure to use the Stripe-Account header.
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 ?
I told you above. If you want to retrieve PRices for a connected account, use https://stripe.com/docs/api/prices/list with the Stripe-Account header.
like this ?
Yes, looks correct to me
if the stripe account has more than one price id
It will list all Prices. But you can filter them by usings the parameters listed here: https://stripe.com/docs/api/prices/list
thanks perfect
Happy to help ๐
yep
The list endpoints always return results chronologically with most recent first
So the first in the list is the most recent
If you want to retrieve just that Price, then apply limit: 1 param: https://stripe.com/docs/api/prices/list#list_prices-limit
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Which parameter?
product currency
Well currency would be a string (like usd) and product accepts a prod_xxx ID
$stripe_account = $this->stripe->accounts->retrieve(
'acct_1Nuw4YEQv8YUivNT',
[],
['type' => 'standard']
);
this is correct if we are need to retrieve stripe type standard ?
Well if you have the ID you don't need to pass other parameters
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
also how we can know the status is enable or not ? for the account ?
Depends what you mean by 'status'?
Learn how Connect platforms can use webhooks and the API to handle identity and business verification.
we have data now but what about status
status =
payouts_enabled: true ?
like this
Did you read the doc I sent? There's no one field that maps to account status like the Dashboard badge
It explains it at the link I shared, please read the document
if the account saved but not complete so we not allow the user to create other one in our platform
ok
with requirements all good but we need doc ?
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
Great!