#avgn
1 messages · Page 1 of 1 (latest)
hi! can you share some details like the ID acct_xxx of the Standard account in question and the request ID req_xx of the API request that gave you that error?
ah ok. The section of the docs you mention only applies when testing payouts on your own direct account, or on a Standard account using OAuth.
if you create an account using the API like this, I think you can use the test details
Don't remember how we crated the standard account , I guess it would be directly created using the dashboard
as for the error, that presumably means you need to finish the test mode onboarding of the account
But even test details did not work.
you called the API from PHP code(https://dashboard.stripe.com/test/logs/req_P6EOtv1u4ZFH3w)
Okay what's the solution, simplest one
Create new standard account ?
Or
Something else
probably the former
Hi! I'm taking over this thread.
We recommend creating connected account with the API
Which is what we have done right?
As per the above conversation
Then how do I test a payout
--
With test bank account the manual payout via API are not working
And real bank accounts aren't being allowed to be added
So if I understand correctly:
- You have a platform account
- You want to create a Standard connected account
- And then make an API call from the platform account to create a payout on the connected account
Is this correct?
Already have a connected account with available balanve
Want to test manual payouts Via API
But yes essentially what you said is correct
Thanks for the clarificaiton! Give me a few minutes to run some tests.
are we still talking about acct_1LNdW9PDYJTaFX2T or a different account now?
I'm doing the Standard onboarding process now myself. I just followed the guide at https://stripe.com/docs/connect/standard-accounts#create-account and went through the AccountLink onboarding pages. Part of the onboarding is that it lets you input test details automatically.
const account = await stripe.accounts.create({type: 'standard'});
const accountLink = await stripe.accountLinks.create({
account: account.id,
refresh_url: 'https://example.com/reauth',
return_url: 'https://example.com/return',
type: 'account_onboarding',
});
JSON.stringify(accountLink) // visit this link
after I did the onboarding I did this to test a manual payout and it worked perfectly
// add test funds to the account
let pi = await stripe.paymentIntents.create({
amount: 10000,
currency: 'eur',
payment_method_types: ['card'],
payment_method:"pm_card_bypassPending", // skip waiting period, add to available balance
confirm:true
}, {stripeAccount:"acct_1M1Vd0QtmyKAixve"});
// do a manual payout
const payout = await stripe.payouts.create({
amount: 600,
currency: 'eur',
}, {stripeAccount:"acct_1M1Vd0QtmyKAixve"});
does that help @uneven depot ?
Hi see the issue was not that I can't add a test account
I was able to manually add a test bank account as well to
acct_1LNdW9PDYJTaFX2T
--
But then I could not make payouts to it
So basically I should now use this new account correct ?
did you do the account onboarding? (i.e. create an AccountLink and visit it?)
if not that's why the account is not active and you get errors trying to send payouts
Honestly that account was created long back so don't remember how it was created
probably easier
like I said, I tested this from scratch just now in 5 minutes and it all worked fine
sure
The payment element
If we chose the card option and US country
There is a zip code field
What options we have to customize the place holder
Currently it shows 90210
And I think only color can be changed for the placeholder
- Can I autofill the textfield value with some zip code which we collect
- Can placeholder be edited , like 99999
- yes, you can use https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-defaultValues-billingDetails-address-postal_code to add default values
- as far as I know, no
paymentElement = elements.create("payment", {
defaultValues:{billingDetails:{address:{country:"US",postal_code:"99999"}}}
});
Okay thanks will check