stripe-react-native
stripe-react-native copied to clipboard
Expired API Key provided Error when executing presentPaymentSheet()
Describe the bug When I open the payment sheet in my react native with expo app it opens with loading state, then it closes and an error appears saying: Expired API Key provided: ek_test_YW*********************************************************************_******r1xQ.
Fun fact 1: I don't know what does 'ek' at the start of the key even means, cause for example I think pk means public key or sk means secret key. And any of my current keys ends with 'r1xQ', so I don't know where that key came from.
Fun fact 2: It was working and suddenly after doing a couple changes in my implementation to change the appearance of the sheet. It began to crash.
To Reproduce Steps to reproduce the behavior:
- Build React Native App
- Implement the code here: https://docs.stripe.com/connect/direct-charges
- Open the sheet and maybe face the error.
Expected behavior be able to open the sheet again, and complete a payment.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
- Device: IPhone 15 Pro Simulator
- OS: IOS 17.4
Additional context Add any other context about the problem here.