Stripe connect marketplace with Copilot stripe.js 2.0

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:

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. :+1:

Hey @niklasf

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 - happy to help if I can

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

@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 - happy to help if I can

@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.

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 - happy to help if I can

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! :slight_smile:

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?

Great @niklasf glad it’s working for you!

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 - happy to help if I can

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).

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 - happy to help if I can

@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)

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.

Sure @niklasf I’ll PM you directly

Ambroise

Need extra help?

Book a free 15 minutes call - happy to help if I can

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