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:
Button a is clicked → Create payment method with Stripeelement A
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:
@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?
@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.
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
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?
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).
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
@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.