novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

PaymentSession should handle sending if payment_url is null #557

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Right now if you try to send a payment and there is no payment_url, 
PaymentSession just refuses to cooperate and returns null, and you have to send 
the transaction yourself like in a normal (non-payment) send. It would be nice 
if PaymentSession handled both cases the same way, i.e. so that you can just 
call sendPayment regardless if there is a payment_url or not.

Original issue reported on code.google.com by jakub.su...@gmail.com on 13 May 2014 at 1:12

GoogleCodeExporter commented 9 years ago
Hi, it's been a while but now I'm looking at this issue.

I have spend some time on this and I'm not sure if I understand you correctly, 
could you show what are you trying to achieve with pseudo code, source code, or 
possibly creating a failing unit test?

If I understand BIP70 correctly, the Payment is send to the payment_url, so it 
doesn't make much sense without it - you will fall back to simply parsing a 
BitcoinURI then (the sendPayment method sends the payment to the payment_url).

Perhaps what you would like is the way to work with BitcoinURIs? If yes, this 
is already available.

Original comment by wlangiew...@gmail.com on 12 Nov 2014 at 3:10