Stripe - Seller Charge Payment ( Invalid API Key Error - Secret Key )

Hello, Bubblers

I have a problem in stripe payment from using Plugin Stripe.js. We provided the exact Publishable and Secret Key similar to Stripe Dashboard into the stripe.js plugin.

When user provide card details ( Test Mode ) such as Card Number, Valid Expiry Month, Year and CVC, Card token is created successfully with the provided publishable key.

But when creating the payment, here I am using :
“Stripe.js: Seller - Charge Payment to platform customer” from the stripe.js plugin

One more thing, the application is working on Live Mode Publishable and Secret Keys,
but the problem exists with test secret key only

It response with the error - “Invalid API Key”, any help regarding the problem would be appreciated,
please see the screenshot attached!

Hey @aditya.rajak,

You need to prepend ‘Bearer’ and a space to the Server Key provided by Stripe for both Development and Live environments; this is mentioned on the instructions section of Stripe.js’ plugin page. As a principle, you should always review a plugin’s instructions to know about what you need to do to get things working from setup to installation to usage.

For the future, emailing us at plugins@cobubble.com is the way to go. :+1:

1 Like

@copilot

image

I’m getting this error when doing an search for a customer. I have the keys setup correctly becuase I use this already with other actions

Any Ideas?

I’m trying to update the customer’s balance but not having any luck

I tried including the name and the email

Hi @david44,

You must provide your actual Secret Key in place of the <secret_key> for your Authorization headers. It looks like you already have your Secret Key in other fields, so replace and go! :slight_smile:

1 Like