Fitpassu / react-native-stripe-payments

Lightweight, easy to integrate and use React native library for Stripe payments (using Payment Intents) compliant with SCA (strong customer authentication)
MIT License
98 stars 31 forks source link

Library gives an error #31

Closed OmarGulzar closed 3 years ago

OmarGulzar commented 3 years ago

PaymentConfiguration was not initialized Screenshot_20210415-145022

viktorasl commented 3 years ago

you did not call stripe.setOptions({ publishingKey: 'STRIPE_PUBLISHING_KEY' }) or at least did not call early enough

OmarGulzar commented 3 years ago

I did early enough not sure about that, let me check. Between thank you for responding

OmarGulzar commented 3 years ago

The issue still persists, Please help, Where do you suggest i call stripe.setOptions() ?

viktorasl commented 3 years ago

Could you try calling stripe.setOptions({ publishingKey: 'STRIPE_PUBLISHING_KEY' }) i.e in componentDidMount and confirmPayment on button click

OmarGulzar commented 3 years ago

That is exactly what i am doing. But with no luck

viktorasl commented 3 years ago

Hm, well, not quite sure how to help now, no ideas at the moment

OmarGulzar commented 3 years ago

The issue was related to something else, some debug mode issue.