#taha_docs

1 messages ยท Page 1 of 1 (latest)

tribal krakenBOT
#

๐Ÿ‘‹ 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.

digital helm
#

๐Ÿ‘‹ happy to help

tribal krakenBOT
earnest narwhal
keen basin
#

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)
}
}

earnest narwhal
#

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?

keen basin
#

I just tried and the behavior is that the card reader is now expecting me to tap the card twice.