mycelium-com / wallet-ios

94 stars 41 forks source link

Wrong amount when an invoice is paid #21

Open inaltoasinistra opened 7 years ago

inaltoasinistra commented 7 years ago

Hello, we found a problem when a BIP21 invoice is paid. The paid amount does not correspond to the invoice amount. The difference is minimal (e.g. 444 satoshi), but the payment processor does not mark the invoice as complete and this makes the user experience very bad.

We does not run into this problem with BIP70 invoices (i.e. BitPay invoices) yet.

Giszmo commented 7 years ago

BIP21 is "URI Scheme" and also what Mycelium uses when you create a QR-code with amount.

Did you observe the issue when clicking a link or with a QR-code? Does the app over-pay or under-pay? Anyway, thanks for reporting. We will look into this.

inaltoasinistra commented 7 years ago

We run into the problem when QR-codes are read.

We see the problem when the wallet under-pays, btw since over-payments are not an issue (invoices get confirmed if you pay too much) we cannot say that this situation does not occur.

inaltoasinistra commented 7 years ago

Hello, do you have an update on this issue? Thank you

paintballpanda commented 7 years ago

@the9ull, we have reported the same issue to Mycelium support multiple times starting in early March but have not heard of any resolution yet. Hopefully bumping this issue can get Mycelium support to take another look at this issue. This problem still persists on the iOS version only. Android versions do not seem to be plagued by it.

martijnw commented 7 years ago

ouch... Can someone post a sample payment request and OS / Myclium version where this happens?

inaltoasinistra commented 6 years ago

Today it happened again. The payment request is:

bitcoin:1Jgtkf8c1224jA6FA1QgVFaEduLfnR7fxF?amount=0.00589401&label=inbitcoin

The wallet missed the amount by 135 satoshis as you can see here