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

Signed Integer Overflow when handing over large amount to reader #4

Closed
pc-coholic opened this issue Jun 30, 2020 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@pc-coholic
Copy link

Expected Behavior

Making a payment request for 100.000.000,00 Euro should prompt a payment for exactly that amount on the reader.

Current Behavior

Signed 32bit integer overflow

IMG_20200616_214135

Steps to Reproduce

val paymentIntent = CardPaymentActivity.IntentBuilder(activity)
                .amount((receipt_total * BigDecimal("100.00")).toLong())  // TODO: Does not work for 0-digit currencies
                .reference(reference)
                .enableTipping(false)
                .build()

Context

  • Operating Version: Android 10
  • SDK version: 1.4.0
  • Originally reported as API-16526, reposted here to tracking purposes
@fabriciovergara fabriciovergara added the bug Something isn't working label Jul 2, 2020
@dmilovanovi
Copy link

Hey,

Thank you for reaching out to us.

Our team will have a look and we'll get back to you as soon as possible.

Kind regards.

@pvoid
Copy link
Collaborator

pvoid commented Aug 31, 2020

Fixed in version 1.8.3

@pvoid pvoid closed this as completed Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants