stripe / stripe-terminal-android

Stripe Terminal Android SDK
https://stripe.dev/stripe-terminal-android/
Other
94 stars 46 forks source link

Expired API Key provided #410

Closed Jason-IUVO closed 4 months ago

Jason-IUVO commented 11 months ago

Summary

Based on the logs from the production environment, an error occurred when calling the createPaymentIntent method with the following details: errorMessage: Expired API Key provided: pss_liveYW*******zLbP, errorCode: NETWORK_ERROR.SESSION_EXPIRED.

And within one hour, multiple devices encountered errors, with different API keys as well: pss_liveYW*******ZHX3 pss_liveYW*******zLbP pss_liveYW*******6ASN pss_liveYW*******bWgG

Code to reproduce

Terminal.getInstance()
                    .createPaymentIntent(params, object : PaymentIntentCallback {
                        override fun onSuccess(paymentIntent: PaymentIntent) {
                            callbackPaymentIntentStatus(
                                currentPaymentIntent,
                                CustomPaymentStatus.CREATE_PAYMENT_INTENT_SUCCESS,
                                null
                            )
                        }

                        override fun onFailure(e: TerminalException) {
                            currentPaymentIntent = null
                            callbackPaymentIntentStatus(null, CustomPaymentStatus.CREATE_PAYMENT_INTENT_FAIL, e)
                        }
                    })

Android version

Android 9

Impacted devices (Android devices or readers)

Reader: M2

SDK version

2.22.0

basitjawaid commented 7 months ago

Similar bug encountered, @gliu-stripe can you help ?

basitjawaid commented 7 months ago

@Jason-IUVO are able to resolve this bug?

billfinn-stripe commented 7 months ago

Can you reproduce this error using the latest SDK version?

basitjawaid commented 7 months ago

@billfinn-stripe I have integrated the latest sdk, will share my experience here.

dmatthews-stripe commented 4 months ago

@basitjawaid we will be closing this ticket out, if this is still an issue, please let us know by re-opening this ticket or opening a new ticket.