https://github.com/boolka/ym_http_notice
Yandex money notice system via HTTP. Represented by express middleware
https://github.com/boolka/ym_http_notice
deprecated
Last synced: 8 months ago
JSON representation
Yandex money notice system via HTTP. Represented by express middleware
- Host: GitHub
- URL: https://github.com/boolka/ym_http_notice
- Owner: boolka
- Created: 2015-09-13T16:44:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-19T10:00:50.000Z (over 10 years ago)
- Last Synced: 2025-08-09T19:40:40.884Z (10 months ago)
- Topics: deprecated
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Accept payments online via Yandex
docs: https://money.yandex.ru/doc.xml?id=527069
### Installation
```sh
$ npm i ym_http_notice
```
### Example
var ym_http_notice = require("./ym_http_notice");
// ... get express instance somehow
app.post("/payment",
ym_http_notice(global.secret, checkOrder, paymentAviso)
);
function checkOrder (body, recall){
// body contains all parsed fields from request(e.g. shopId, customerNumber, etc)
// do some stuff with body and then
recall(null, false);
// or recall(err); if error (with or without message and techMessage)
}
function paymentAviso (body, recall){
// The same
recall(null, true);
}
License
----
MIT