From d8dafb1d2ef450b01cf164fa9e1e28055fc9f17c Mon Sep 17 00:00:00 2001 From: Peter Rounce Date: Wed, 31 Aug 2022 21:17:01 +0100 Subject: [PATCH] update document for the new create card flow --- docs/CARD_ANDROID.md | 42 +++++++++++------------------------------- 1 file changed, 11 insertions(+), 31 deletions(-) diff --git a/docs/CARD_ANDROID.md b/docs/CARD_ANDROID.md index 9d607e0..6bc60e2 100644 --- a/docs/CARD_ANDROID.md +++ b/docs/CARD_ANDROID.md @@ -2,7 +2,7 @@ ## Introduction -Here we describe how to create your own bolt cards with the Bolt Card Android app and the Bolt Card service. +Here we describe how to create your own bolt cards with the Bolt Card service and the Bolt Card Android app. ## Resources @@ -16,46 +16,26 @@ Here we describe how to create your own bolt cards with the Bolt Card Android ap ### Install the app -- install the app from source or apk - -### Write the URI template to the card -on the app -- select `Write NFC` -- enter your domain and path in the text entry box given -``` -card.yourdomain.com/ln -``` -- bring the card to the device for programming the URI template -- select `Read NFC` -- check that the URI looks correct -``` -lnurlw://card.yourdomain.com/ln?c=...&p=... -``` -- note the UID value +- install the app from + - source + - apk + - Google Play Store [Boltcard NFC Card Creator](https://play.google.com/store/apps/details?id=com.lightningnfcapp) ### Write the key values to the card on the bolt card server - ensure the environment variables for the database connection are set up (see `boltcard.service`) - enter the `createboltcard` directory - `$ go build` -- `./createboltcard` to create a card -- `./createboltcard -help` to see options -- `./createboltcard -enable -tx_max=1000 -day_max=10000 -name=card_1` for example +- run the creation program + - `./createboltcard -help` to see options + - `./createboltcard -enable -tx_max=1000 -day_max=10000 -name=card_1` for example - this will give you a one-time link in text and QR code form on the app -- select `Key Management` -- click `scan QR code from console` +- click `scan QR code` - scan the QR code -- bring the card to the device for programming the keys - -### Update the card record on the server -on the bolt card server -- `$ psql card_db` -- `card_db=# select card_id, one_time_code from cards order by card_id desc limit 1;` -- check that this is the correct record (one_time_code matches from before) -- `card_db=# update cards set uid = 'UID value from before without the 0x prefix' where card_id=card_id from before;` -- `card_db=# update cards set enable_flag = 'Y' where card_id=card_id from before;` +- the app will prompt you to hold the card for programming +- the app will test the card and show you the results ### Make a payment - monitor the bolt card service logs