Services Plugins FAQs

Stripe Plugin Attach Card Api error


Hi All,

I’ve recently integrated the Stripe Marketplace Express plugin into my app.

I have encountered an issue with the following use case.

A new user registers on my app as both a customer and seller within the same work flow. All works fine and the related customerID and sellerID are stored in the database.

The issue I have is that I’m giving the newly created customer the option to not register a new card on signup as I’ve created a separate workflow to register a card at a later date.

I have created a form to register a new bank card and ensured a token is present on the page. However when attempting to attach the new card to the existing customer this is throwing up an api error stating that I need to remove two // in the url of the api.

Is this a potential bug in the api or am I going wrong somewhere else in this?

Thanks all for the help in advance.

Hello, @deansouthby
Thanks for reaching out.

Right now, we are not encountering any bugs with this plugin. Thus, I can assume that the issue is related to your specific settings.
In order to check for an exact error, please share with me the screenshots of your current settings for attaching a new card to your user. I need to see at which step you are receiving this error.

Looking to hearing from you soon.
Best regards,

Hi Ecaterina,

Please see below the setup.

Is the error that a variable is not being passed through to Stripe from the initital card setup?

I want to be able for the user to add a card and then use this for ongoing off session payments.

Hello, @deansouthby
Thanks for these screenshots.

Please check our Demo settings for attaching a payment method for any of your customer:


To get the payment method ID, first, a session should be created, and right after it saves the Intent ID it returns. After the user will successfully exit the session, the action call Retrieve Setup Intent should be used to get the payment method ID which then can be attached to a customer.

So, I would recommend you check our Demo Page in order to configure the required action correctly:

Hope it would be helpful for you.
Best regards,