User Tools

Site Tools


http-micropayments

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
http-micropayments [2015/10/24 17:35] donpdonphttp-micropayments [2024/01/31 04:08] (current) – external edit 127.0.0.1
Line 4: Line 4:
 #### Retrieving payment data for a resource/URI #### Retrieving payment data for a resource/URI
   * GET <URI>   * GET <URI>
-    * 200 or 402: receives txout in headers. computes signed tx.+    * 200 or 402: receives json txout/addr in header.
     * OR second request with content-type: application/micropayment -> receives json     * OR second request with content-type: application/micropayment -> receives json
 +  * Uses browser extension to handle bitcoin private keys and sign the txout.
   * POST <URI>   * POST <URI>
     * content-type: application/micropayment; sends {tx: 'tx', refund: 'addr', etc.}     * content-type: application/micropayment; sends {tx: 'tx', refund: 'addr', etc.}
  
 #### HTTP Header #### HTTP Header
-more featureful to use txout+encoded in no-spaces json. 
 + 
 +Paying to txout is more featureful.
 ``` ```
-X-micropayment: {"type":"btc", "txout":"..."}+X-micropayment: {"type":"btc","txout":"..."}
 ``` ```
 or simply list receiving address or simply list receiving address
 ``` ```
-X-micropayment: {"type":"btc", "addr":"..."}+X-micropayment: {"type":"btc","addr":"..."}
 ``` ```
  
Line 33: Line 36:
     * Better to embed in HTML doc     * Better to embed in HTML doc
     * other mime types? png/jpeg/mp4     * other mime types? png/jpeg/mp4
 +
 +#### Implementations
 +  * Client
 +    * browser addon
 +  * Server
 +    * PHP snippet
 +    * Wordpress plugin
 +
  
http-micropayments.1445708117.txt.gz · Last modified: 2024/01/31 04:08 (external edit)