First of all, I think it is a bad idea to keep the Bitcoins of your users on a server. Many of such servers have been hacked in the past, or simply taken over via their hosting provider.
The advantage of the BIP70 payment protocol is you can transmit the payment directly, without the need for connectivity to the Bitcoin network at the moment of payment. Also, you can transmit an amount, your (the payees) identity and so on. At the end of the day, it depends on your specific use case. Bitcoinj supports the payment protocol via the org.bitcoinj.protocols.payments.PaymentSession and .PaymentProtocol classes. On 06/24/2017 10:22 AM, Kunal Ransing wrote: > Hi, > > I am developing java backend(ejb) application receive payment. So > creating receive address for every payment request by > kit.wallet().freshReceiveAddress().toString() & displaying that on web > page in plain/QR format. > But i read here about Create Payment request : > https://en.bitcoin.it/wiki/Payment_Request > Which is correct way for receiving payment ? How to do Payment_Request > using bitcoinj lib ? > Please help! > > Regards, > Kunal > > -- > You received this message because you are subscribed to the Google > Groups "bitcoinj" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
