-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FIX] [13.0] pos_payment_terminal: directly switch to 'waiting for card', prevent endless status polling #1
base: 13.0
Are you sure you want to change the base?
Conversation
) { | ||
resolve(pay_line.terminal_transaction_success); | ||
// Stop the loop | ||
clearInterval(timerId); | ||
} | ||
} | ||
} | ||
if (!got_response && retries > 30) { | ||
// if after 30 seconds still no word about the status of the transaction, | ||
// then consider it lost in space. Let user decide the status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this plays well with other drivers such as Telium, which may not return any status until there is a definite Approved or Cancelled - in that case 30 seconds may be too soon. Maybe this should be made configurable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we could just remove this, since the 'waiting for card' screen does show a 'Cancel' button, so the user is not stuck.
62d3001
to
64d9bd8
Compare
[FIX] use float_compare to compare floats
No description provided.