Prompt user for payment amount using bitcoin bip 70?

3

When specifying the details for the payment object I have noticed that if I leave amount blank I am not prompted to enter an amount by the bitcoin-qt 0.9 client.

xpd = x.PaymentDetails()
xpd.time = int(time())
xpd.outputs.add(amount = 10000000, script = serialized_script)
xpd.memo = 'this is xpd memo'
xpdstring = xpd.SerializeToString()
xpr = x.PaymentRequest()
xpr.serialized_payment_details = xpd.SerializeToString()
xprstring = xpd.SerializeToString()

If I do not specify an amount then it is set to zero by default and I am presented with the error that the bitcoin amount is too small and is considered 'dust'.

Please can someone help me understand how to prompt the user for a deposit amount if the amount field is blank?

Thanks.

Additionally I should note that I am using the testnet.

derrend

Posted 2014-06-07T01:26:12.563

Reputation: 606

Answers

1

This is a known bug in Bitcoin-QT.

Nate Eldredge

Posted 2014-06-07T01:26:12.563

Reputation: 21 420

Much appreciated :)derrend 2014-06-07T02:23:44.323