上QQ阅读APP看书,第一时间看更新
Proceeding with payment
We then define the /ProcessingPayment route, which will be requested when the user clicks the Pay with BTC button to generate and render the bitcoin payment URL:
app.use(bodyParser.json());
app.post("/ProcessingPayment", function(req, res) {
var amount_ = req.body.amount;
var resp = compose_uri(amount_)+"?amount="+amount_;
res.send(resp);
});