#taha_docs
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1392489948162035843
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
Hello, still looking in to this a bit. Can you tell me more about what update you are trying to make at this point? I know that it is more common to do logic like that after the PM has actually been collected. What are you trying to react to in the onRequestReaderInput handler?
https://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=android#collect-inspect-payment-method
I am trying to change the amount of payment. For example I decided to pay $10 and M2 card reader is ready to accept the card onRequestReaderInput. At that point can I change the amount from $10 to $15 of the payment intent.
Right now I cancel the transaction and then perform another with a different amount
private fun cancelCurrentTransaction() {
paymentCancellable?.let {
paymentCancellable?.cancel(paymentCancellationCallback)
}
}
You should be able to update it from there, that said if your app already knows it wants to change the price before that callback it would likely make more sense to do so there. Have you tried updating it from the onRequestReaderInput handler but an error was thrown?
I just tried and the behavior is that the card reader is now expecting me to tap the card twice.