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
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
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
Steps to Reproduce
Context