Invalid API Key provided #2142
Unanswered
CodingwithTea
asked this question in
Q&A
Replies: 3 comments 13 replies
-
you are using the publishable key for your cloud function. You need to make sure that you use the server key. Also keep in mind to inject that key securely |
Beta Was this translation helpful? Give feedback.
13 replies
-
Anyone? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, thanks for the update.
…On Thu, 8 May 2025 at 18:43, Rémon ***@***.***> wrote:
I will contact stripe internally because it is somewhere in their mobile
sdk as I checked our codebase intensively and the stripe ones and this
particular error is raised by the stripe ios checkout package.
—
Reply to this email directly, view it on GitHub
<#2142 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5AD5X7TWMFPTPG7WIV5TGL25NNRBAVCNFSM6AAAAAB4MFRLAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMBXGYZTQNA>
.
You are receiving this because you authored the thread.Message ID:
<flutter-stripe/flutter_stripe/repo-discussions/2142/comments/13076384@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have followed all the steps and created a cloud function for a Payment Intent.
Once Payment Intent is received successfully using the Test Account Secret Key. An issue arose when I started
initPaymentSheet
. The payment sheet tried to open but then crashed, and the error message is below.StripeException( error: LocalizedErrorMessage(code: FailureCode.Failed, localizedMessage: Invalid API Key provided: pk_test_***********_KEY, message: Invalid API Key provided: pk_test_***********_KEY, stripeErrorCode: null, declineCode: null, type: invalid_request_error) )
This Function is causing issues, although I have declared Test Publishable API Key in the main.dart as suggested.
`
Future _handleCardPayment(String clientSecret) async {
}`
Beta Was this translation helpful? Give feedback.
All reactions