Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

presentPaymentSheet doesn't open in release apk #438

Closed
pro030 opened this issue Jul 20, 2021 · 3 comments
Closed

presentPaymentSheet doesn't open in release apk #438

pro030 opened this issue Jul 20, 2021 · 3 comments

Comments

@pro030
Copy link

pro030 commented Jul 20, 2021

Hi ,
I am using this code sample. Payment sheet opens fine when i run the app locally in debug mode but if i create a release apk then payment sheet doesn't open and no error is thrown .
I am using testenv in release apk too .
I am calling initPaymentSheet and presentPaymentSheet sequentially after clicking buy button .
I tried to add a delay of 5 seconds after calling initPaymentSheet but that also doesn't solve any issue .
i have tried upgrading the library to 0.1.5 too as it fixes one similar bug #315 but that also didn't work .

Any help is appreciated .

@pro030 pro030 closed this as completed Jul 21, 2021
@soulzidda
Copy link

@pro030 did you manage to resolve this?

@pro030
Copy link
Author

pro030 commented Aug 6, 2021

Yes ,
basically i moved my StripeProvider from App.js to my PaymentScreen .
Somehow, StripeProvider context wasn't carrying on to the PaymentScreen.js and was being lost.

@soulzidda
Copy link

Perfect will give this a try thank you :) was knocking my head against a brick wall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants