BITCOIN payments, OP_RETURN parameter

I want to automate BITCOIN payments and I need to make a donate button that sends an additional OP_RETURN parameter with an encrypted order ID value. I just want to send a small message with payment. I did a bit of documenting myself and saw that the OP_RETURN parameter could help me.

OP_RETURN: http://bitzuma.com/posts/op-return-and-the-future-of-bitcoin/

How to do it? Is there a wallet that does this? Or should I do this from bitcoin-cli

?

I also want to do this in PHP

, and here is an example I don't understand: https://github.com/coinspark/php-OP_RETURN

I mean, I need a button that will make a payment with this encrypted order ID.

Thank you advice.

+3


source to share


1 answer


You will want to do this backend through an encrypted and authenticated client using BIP 70 - AKA. Bitcoin payment protocol.

You can build a client browser that will do the actions you describe, but you don't want to trust the data that the client sends without verification, and you verify the transaction before it is sent to the network will not make you trustworthy as a merchant a rather, MIM between the user and the blockchain.



For more information on BIP 70 Payment Protocol See: https://github.com/bitcoin/bips/blob/master/bip-0070.mediawiki

+1


source







All Articles