stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

Expired API Key provided Error when executing presentPaymentSheet()

Open fimbres opened this issue 9 months ago • 1 comments

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:

  1. Build React Native App
  2. Implement the code here: https://docs.stripe.com/connect/direct-charges
  3. 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. Screenshot 2024-05-15 at 10 46 56 p m Screenshot 2024-05-15 at 10 47 23 p m

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.

fimbres avatar May 16 '24 05:05 fimbres