Coinpayments-IPN
Module for verifing Coinpaymets Instant Payment notifications.
Installation
npm install coinpayments-ipn
Usage
/** * * @param * @param * @param * @returns * @throws */const verify = ;const CoinpaymentsIPNError = ; let IsValid error; try isValid = ; catch e error = e;if error if error instanceof CoinpaymentsIPNError // handle invalid payload // make bug report if isValid // valid else // invalid
Example
A simple docker image can be found here.