#avgn

1 messages · Page 1 of 1 (latest)

slate ledgeBOT
frozen spear
#

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?

uneven depot
#

acct_1LNdW9PDYJTaFX2T

#

req_9z7wutOSxZ0fNy

frozen spear
#

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

uneven depot
#

Don't remember how we crated the standard account , I guess it would be directly created using the dashboard

frozen spear
#

as for the error, that presumably means you need to finish the test mode onboarding of the account

uneven depot
#

But even test details did not work.

uneven depot
#

Okay what's the solution, simplest one
Create new standard account ?
Or
Something else

frozen spear
#

probably the former

uneven depot
#

Using the dashboard directly ?

#

Stripe dashboard*

wispy pecan
#

Hi! I'm taking over this thread.

#

We recommend creating connected account with the API

uneven depot
#

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

wispy pecan
#

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?
uneven depot
#

Already have a connected account with available balanve

#

Want to test manual payouts Via API

#

But yes essentially what you said is correct

wispy pecan
#

Thanks for the clarificaiton! Give me a few minutes to run some tests.

frozen spear
#

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 ?

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 ?

frozen spear
#

if not that's why the account is not active and you get errors trying to send payouts

uneven depot
#

Honestly that account was created long back so don't remember how it was created

frozen spear
#

like I said, I tested this from scratch just now in 5 minutes and it all worked fine

uneven depot
#

Thanks will do with a new account

#

One more small query related to another topic

frozen spear
#

sure

uneven depot
#

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

#
  1. Can I autofill the textfield value with some zip code which we collect
  2. Can placeholder be edited , like 99999
frozen spear
#
paymentElement = elements.create("payment", {
    defaultValues:{billingDetails:{address:{country:"US",postal_code:"99999"}}}
  });
uneven depot
#

Okay thanks will check