title: Stripe Marketplaces Implementation
body: <p>Hi guys I am somewhat new to programming. Does anyone have experience using Stripe Marketplaces? I spent all day trying to wrap my head around it but they are really confusing. </p>
  
  <p>Here is their site: <a href="https://stripe.com/us/marketplaces" rel="nofollow">https://stripe.com/us/marketplaces</a></p>
  
  <p>This is the supposed API call(Where does this go in my code?): </p>
  
  <pre><code>curl https://api.stripe.com/v1/transfers \
    -u sk_test_jId8tWpQJuUpj7dtRQnkyH3t: \
    -d amount=400 \
    -d currency=usd \
    -d recipient=rp_103haf2rmKZAYQkmezEC4eza \
    -d bank_account=ba_mBSw34rzSCcT5i0zd34tpPl \
    -d "description=Transfer to test@example.com"
  </code></pre>
  
  <p>I have implemented stripe checkout for Rails: <a href="https://stripe.com/docs/checkout/guides/rails" rel="nofollow">https://stripe.com/docs/checkout/guides/rails</a></p>
  
  <p>That was very fast and easy but it won't work as I will have to distribute funds after collecting them.(Stripe Connect won't work for what I am doing &amp; I am guessing Stripe Marketplaces is built on top of Stripe Checkout?).</p>
  
  <p>Stripe Marketplaces is rather new and all tutorials out there are for simple stripejs, stripeconnect or stripe checkout but there are none for implementing stripe marketplaces that I could find. </p>