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

m2 reader keeps disconencting and reconnection is an issue.. #869

Open
levancho opened this issue Dec 26, 2024 · 0 comments
Open

m2 reader keeps disconencting and reconnection is an issue.. #869

levancho opened this issue Dec 26, 2024 · 0 comments

Comments

@levancho
Copy link

Describe the bug
this is more of a summary of questions to developer since i was not able to get anywhere with stripe support.. and i this library is not document well, so its a shooting in the dark to guess many things so i am just gonna ut it here L
i am ussing m2 reader with react native expo bare mode..

i am getting very erratic behaviour and since api methods itself are not well document, i will summarize all my questions here ;

  1. can i call initialize multiple times?

  2. can i safely call useStripeterminal hook several times or I have to call it once and then cache/store the functions it returns for future use e.g retreivePaymentItent etc.. .
    2.1) sub question,: if i call it multipleTimes, event listeners passed on first call are getting discarded if second time i am listening to same events? or they both will receive the callback ?

  3. when i call initialize sometimes it returns reader, othertimes it returns.{reader: undefined, error:undefined} i am not sure that that exactly means its like inbetween error and success (no errors) so i am not really clear was initialization successfully or not.. looks like if I do not get reader back that means initialization was not successful? but then why there was no error?

3.1) what happens if initialization was successful and i call initialize again?

  1. what is the purpose of variable initialized when it always returns false?
  1. if i have reference to reader, and use it to connect.. later on, if reader is disconnected, can i use that same reference to reconnect, or i have to do whole new process of initialize,
    discover readers, connect to reader .. ?

  2. reader keeps disconnected a lot, and then i am having hard time reconnecting, and actually i am not really clear what should be the correct steps to recconect.. do I need to call initialize again? or just scan for readers and reconnect?

this are all my questions, i would appreciate if you can help me clarify it .

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

1 participant