Stripe js.2 - Cant attach payment method

I keep getting the error
"You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. ‘Authorization: Bearer YOUR_SECRET_KEY’).

I’ve tried multiple ways of creating workflows and it seems random.

I had initially tried to follow the copilot youtube video and when I was attaching a payment method to a customer it wouldnt attach and was giving me the error above.

Any idea what I might be doing wrong?

What im trying to achieve is when a customer (theyre a customer on a connected account) makes payment for a service it will then update the customers method for future payments to be charged to.

I’ve spent best part of 2 entire days trying to get this to work so now I’m asking if anybody knows what I’m doing wrong on here, I feel I’ve tried every option and now at a complete dead end.

1 Like

This is a bug in the plugin itself. When I run this without a connected account seller ID the automatic payment method is created is attached to the customer as it should. However the customer is in my main stripe account, not in the connected account as it should be.

When i run the workflow with the connected stripe seller ID present, the error is thrown.

I can now see that the plugin for some reason makes the workflow search for the customer in the main stripe account, not the connected account. This is why it keeps throwing the error “cannot find the payment method”.

Has anyone else had this same problem, or found a resolution to it?