Skip to content

boolka/ym_http_notice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accept payments online via Yandex

docs: https://money.yandex.ru/doc.xml?id=527069

Installation

$ 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

About

Yandex money notice system via HTTP. Represented by express middleware

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published