# Stripe connect marketplace with Copilot stripe.js 2.0

**URL:** <https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964>\
**Category:** Need help\
**Created:** [September 24, 2020, 7:11am UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964 "2020-09-24T07:11:08Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![niklasf](https://avatars.discourse-cdn.com/v4/letter/n/ac91a4/32.png) [@niklasf](https://forum.bubble.io/u/niklasf)\
**Post date:** [September 24, 2020, 7:11am UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/1 "2020-09-24T07:11:08Z")

</div>

Hello guys! Hope you are doing great.

I was hoping someone with a trained eye could see where i am going wrong here, as i can’t find the solutions on the forum or in stripe docs. I am in the middle of trying to get Stripe connect (not express) to work with paymentIntents.

The workflow goes like this:

1. Button a is clicked **→** Create payment method with Stripeelement A
2. Stripeelement A PaymentMethod was created **→** Stripe.js - Customer - Create **→** Stripe.js - PaymentMethod - Attach **→** Stripe.js - PaymentIntent - Create

The payment goes through fine without the “Seller/account ID” filled out. But as soon as i add an seller/account id the customer gets created under the connected account, but the paymentIntent fails with this error:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/f/5facc9c4ad925854e4103273e02f0b7edb5f725a.png)

The connected account is approved for cards and transfers, all info is filled, no warnings from Stripe.

Any ideas? Was hoping this could help future forums readers if we can solve this. 👍

---

<div class="post-metadata">

**Author:** ![ambroisedlg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ambroisedlg/32/61966_2.png) [@ambroisedlg](https://forum.bubble.io/u/ambroisedlg)\
**Post date:** [September 24, 2020, 9:43am UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/2 "2020-09-24T09:43:05Z")

</div>

Hey @niklasf

> [@niklasf](#):
>
> the customer gets created under the connected account

I’m not sure what you mean by that? Your flow seems right apart from that

Cheers  
Ambroise

> **Need extra help?**
>
> [Book a free 15 minutes call](https://ambroisedlg.bubbleapps.io) - happy to help if I can

---

<div class="post-metadata">

**Author:** ![niklasf](https://avatars.discourse-cdn.com/v4/letter/n/ac91a4/32.png) [@niklasf](https://forum.bubble.io/u/niklasf)\
**Post date:** [September 24, 2020, 10:30am UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/3 "2020-09-24T10:30:49Z")

</div>

Hey @ambroisedlg, thank you for taking time to help - much appreciated.

---

<div class="post-metadata">

**Author:** ![ambroisedlg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ambroisedlg/32/61966_2.png) [@ambroisedlg](https://forum.bubble.io/u/ambroisedlg)\
**Post date:** [September 24, 2020, 11:15am UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/4 "2020-09-24T11:15:09Z")

</div>

@niklasf thanks for taking the time to make the video. I couldn’t hear any sound but from what I see in the logs, your issue is in the Attach Payment Method call.

This call is only designed to attach a payment method to a Customer in Stripe, it’s not related to the PaymentIntent call itself, nore to the Connect account, so I’m not sure why you would need the Connect Account ID in that call - can you try removing it and let me know if that solved it?

Ambroise

> **Need extra help?**
>
> [Book a free 15 minutes call](https://ambroisedlg.bubbleapps.io) - happy to help if I can

---

<div class="post-metadata">

**Author:** ![niklasf](https://avatars.discourse-cdn.com/v4/letter/n/ac91a4/32.png) [@niklasf](https://forum.bubble.io/u/niklasf)\
**Post date:** [September 24, 2020, 12:03pm UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/5 "2020-09-24T12:03:16Z")

</div>

@ambroisedlg Thank you for your response. Much appreciated.  
This did not solve the issue. Maybe if i explain what i want instead as i believe its quite simple. I want to create a payment to a connected account with the stripe element A.

Let me know what i should change.

---

<div class="post-metadata">

**Author:** ![ambroisedlg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ambroisedlg/32/61966_2.png) [@ambroisedlg](https://forum.bubble.io/u/ambroisedlg)\
**Post date:** [September 24, 2020, 1:44pm UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/6 "2020-09-24T13:44:02Z")

</div>

Hey @niklasf can you check your Logs again? Is there still a problem with the Attach payment method call?  
What’s the error message when you look at your Payments tab in Stripe as well? When creating a Payment Intent, you need to Confirm it at some point. Otherwise, the payment will never go through

Ambroise

> **Need extra help?**
>
> [Book a free 15 minutes call](https://ambroisedlg.bubbleapps.io) - happy to help if I can

---

<div class="post-metadata">

**Author:** ![niklasf](https://avatars.discourse-cdn.com/v4/letter/n/ac91a4/32.png) [@niklasf](https://forum.bubble.io/u/niklasf)\
**Post date:** [September 24, 2020, 2:12pm UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/7 "2020-09-24T14:12:36Z")

</div>

It works now after deleting it all and recreating it again - without the seller id in the create customer and attach payment method. So thank you so much for that! 🙂

One last thing, if you don’t mind. The application fee from the PaymentIntent create, does not apply in the payment in the connected account, is there any trick to this?

---

<div class="post-metadata">

**Author:** ![ambroisedlg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ambroisedlg/32/61966_2.png) [@ambroisedlg](https://forum.bubble.io/u/ambroisedlg)\
**Post date:** [September 24, 2020, 2:14pm UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/8 "2020-09-24T14:14:29Z")

</div>

Great @niklasf glad it’s working for you!

> [@niklasf](#):
>
> One last thing, if you don’t mind. The application fee from the PaymentIntent create, does not apply in the payment in the connected account, is there any trick to this?

Do you mean that the payment is working but the funds are not transferred to the connected account?

Ambroise

> **Need extra help?**
>
> [Book a free 15 minutes call](https://ambroisedlg.bubbleapps.io) - happy to help if I can

---

<div class="post-metadata">

**Author:** ![niklasf](https://avatars.discourse-cdn.com/v4/letter/n/ac91a4/32.png) [@niklasf](https://forum.bubble.io/u/niklasf)\
**Post date:** [September 24, 2020, 2:19pm UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/9 "2020-09-24T14:19:09Z")

</div>

The payment is completed and the transfer also to the connected account, but the transfer payment has no fee even though the application fee should be 25 (see attatched screenshot).

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/c/fcf72a6e0108086a5ac3bebdcafcc818e66abb16.png)

---

<div class="post-metadata">

**Author:** ![ambroisedlg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ambroisedlg/32/61966_2.png) [@ambroisedlg](https://forum.bubble.io/u/ambroisedlg)\
**Post date:** [September 24, 2020, 2:29pm UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/10 "2020-09-24T14:29:14Z")

</div>

Right I see @niklasf

Try informing dynamic values (for example `Current Page Product's Price*0.99` for the transfer amount and `Current Page Product's Price*0.01` for the Application fee) instead of putting static values. I’m using a custom API call for this action instead of the plugin one so not sure if it could be a bug or not

Ambroise

> **Need extra help?**
>
> [Book a free 15 minutes call](https://ambroisedlg.bubbleapps.io) - happy to help if I can

---

<div class="post-metadata">

**Author:** ![niklasf](https://avatars.discourse-cdn.com/v4/letter/n/ac91a4/32.png) [@niklasf](https://forum.bubble.io/u/niklasf)\
**Post date:** [September 24, 2020, 3:28pm UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/11 "2020-09-24T15:28:33Z")

</div>

@ambroisedlg This does not seem to work with the imputs. The “show documentation” says the following “Application fees are only supported for Seller-executed PaymentIntents”, i suppose this is a seller-executed PaymentIntent though? (See screenshot)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/3/93643f764f41c6ffcf95da4ce260e9e548b9e7d7.png)

Could you possible post a screenshot of your custom API call if you use it with the API Connector? That might help me, i have experience with the API Connector.

---

<div class="post-metadata">

**Author:** ![ambroisedlg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ambroisedlg/32/61966_2.png) [@ambroisedlg](https://forum.bubble.io/u/ambroisedlg)\
**Post date:** [September 24, 2020, 3:30pm UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/12 "2020-09-24T15:30:01Z")

</div>

Sure @niklasf I’ll PM you directly

Ambroise

> **Need extra help?**
>
> [Book a free 15 minutes call](https://ambroisedlg.bubbleapps.io) - happy to help if I can

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [December 3, 2020, 7:11am UTC](https://forum.bubble.io/t/stripe-connect-marketplace-with-copilot-stripe-js-2-0/112964/13 "2020-12-03T07:11:09Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
