I am writing a java webserver that can use bitcoin as a payment method. Thanks to the helpful advice in this question, I am able to generate payment addresses for various signed up vendors. I am now taking that address and creating a Payment Request using the bitcoinJ library. I would like, however, to have this request as a meaningful URL still, so the web browser or client making the payment can do something with it. That is to say, I create the payment request on the server and return it to the client. The client can then put that request in their wallet of choice and make a payment.
Is the payment request able to work that way? I saw this post on stackoverflow that indicates that it can, however I haven't been able to see anything within the API I am using that can do that. Is that a limitation of the specification, the library I'm using, or is it possible to do?
However, that seems like it won't work to me if my server is not actually handling bitcoins. I should still be able to use the uri (as indicated https://electrum.org/bitcoin_URIs.html) without the r parameter, but then I'll need some sort of check to coinbase to see if the payment goes through? Which I guess that would mean that a payment request isn't quite what I need, but rather BIP21 is sufficient?
– S. Buda Apr 21 '15 at 19:44