paypro: example - explain extra arguments in readme file.

This commit is contained in:
Christopher Jeffrey 2014-08-18 13:36:04 -07:00
parent bd227930e1
commit cc3ca4e571
1 changed files with 18 additions and 2 deletions

View File

@ -18,8 +18,9 @@ To run our payment protocol demonstration in the browser, you may run:
$ node examples/PayPro/server.js -b -p 8080
```
This will start the payment protocol demonstration server which serves outputs
in the payment protocol request (which don't ask for *too* many testnet coins).
This will start the payment protocol demonstration server in browser mode,
which serves outputs in the payment protocol request (don't worry, it doesn't
ask for *too* many testnet coins).
Once the server is started, you can visit it in your browser:
@ -43,3 +44,18 @@ Customer: Our payment was acknowledged!
Customer: Message from Merchant: Thank you for your payment!
Customer: Payment sent successfully.
```
## Changing the server address in outputs
## Other Options
If you you're not connected to enough peers to broadcast your transaction (by
default, this example only connects to the core seed peers), you can enable
peer discovery in bitcore by passing the `--discovery` (`-d`) argument onto the
server command line.
If you don't want to actually broadcast your transaction and want to keep your
testnet coins, you can pass `--no-tx` on the server command line.
If you don't want the tests to run automatically and simply host the payment
server, simply pass `--browser` (`-b`) as mentioned above.