<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: performautodev</title>
    <description>The latest articles on DEV Community by performautodev (@performautodev).</description>
    <link>https://dev.to/performautodev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F375365%2Feb347068-58ac-4eb9-9c81-2531ca7e597b.png</url>
      <title>DEV Community: performautodev</title>
      <link>https://dev.to/performautodev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/performautodev"/>
    <language>en</language>
    <item>
      <title>NodeJS - Connected account is required to transfer money from stripe account to another stripe account?</title>
      <dc:creator>performautodev</dc:creator>
      <pubDate>Tue, 28 Apr 2020 12:09:19 +0000</pubDate>
      <link>https://dev.to/performautodev/nodejs-connected-account-is-required-to-transfer-money-from-stripe-account-to-another-stripe-account-4o5k</link>
      <guid>https://dev.to/performautodev/nodejs-connected-account-is-required-to-transfer-money-from-stripe-account-to-another-stripe-account-4o5k</guid>
      <description>&lt;p&gt;This is my use case:&lt;/p&gt;

&lt;p&gt;First, the user pay 100$ with react-stripe-checkout &lt;a href="https://www.npmjs.com/package/react-stripe-checkout"&gt;https://www.npmjs.com/package/react-stripe-checkout&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I handle the logic on NodeJS server:&lt;/p&gt;

&lt;p&gt;So! i want like this:&lt;/p&gt;

&lt;p&gt;1- Create a charge (100$) to primary account stripe (A).&lt;/p&gt;

&lt;p&gt;&lt;code&gt;await stripe.charges.create({&lt;br&gt;
 amount: 100000, currency: 'USD', source: args.token, &lt;br&gt;
});&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Then i want to create a transfer of $30 to another stripe account &lt;/p&gt;

&lt;p&gt;&lt;code&gt;await stripe.paymentIntents.create({ &lt;br&gt;
payment_method_types: ['card'], amount: 3000, currency: 'USD', }, { stripe_account: 'acct_xxx ', &lt;br&gt;
});&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;or &lt;/p&gt;

&lt;p&gt;&lt;code&gt;await stripe.transfers.create({&lt;br&gt;
        amount: 3000,&lt;br&gt;
        currency: 'USD',&lt;br&gt;
        destination: 'acct_XXX',&lt;br&gt;
        transfer_group: 'ORDER_95',&lt;br&gt;
      });&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Like this is correct or is required activate the Connected account and i have to pay for that ?&lt;/p&gt;

&lt;p&gt;So i have a *&lt;em&gt;error: No such account: acct_xxx *&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;What is the best way to achieve it?&lt;/p&gt;

</description>
      <category>node</category>
      <category>stripe</category>
      <category>payments</category>
    </item>
  </channel>
</rss>
