You are viewing a single comment's thread from:

RE: New Hive Account Sign Up options on PeakD - introducing Hivedex.io

I'm late to this... but it would seem like the paid sign up on HiveDex is the PERFECT place to incorporate a QR to pay with Lightning.

This request:

curl -X 'GET' \
  'https://api.v4v.app/v1/new_invoice_hive?hive_accname=hivedex&amount=1.49&currency=USD&usd_hbd=true&app_name=hivedex.io&expiry=600&message=name-of-new-account&qr_code=base64_png' \
  -H 'accept: application/json'

Would return a QR code you could display on this page:

image.png

It would also return a payment_hash and that can be checked with this call:

curl -X 'GET' \
  'https://api.v4v.app/v1/check_invoice/ZjVhMDJET28xYlA5RlZZOHp5Z0NRd3AxUjZWZjg1UENyTnljWDZkUmd0cz0%3D?test=false' \
  -H 'accept: application/json'

If the invoice is paid, you'll get HBD to the value of $1.49 sent to the account hivedex or whatever hive account you want and it will contain the message name-of-new-account or you can put a UUID in there.

I'm just saying... this is easy. The 1% fee is paid by the payee.

Sort:  
 last year  

Oh, very good point.
cc @mahdiyari