3ff70ac7cc | ||
---|---|---|
.. | ||
README.md | ||
bitcore.js | ||
customer.js | ||
index.html | ||
index.js | ||
server.js | ||
style.css |
README.md
Running the Payment Protocol Demo
This is an example of Bitcore's Payment Protocol implementation, including a
mocked server (server.js
) and client (customer.js
).
- Start the server:
node server.js
- Start the customer:
node customer.js
At this point, you should see an acknowledgement from your local server:
Customer: Our payment was acknowledged!
Customer: Message from Merchant: Thank you for your payment!
Customer: Payment sent successfully.