cosna_wallet
v1.0.6
Published
recieve payment directly into your wallet
Downloads
15
Maintainers
Readme
Cosna_Wallet-nodejs
Cosna_Wallet-nodejs est un package node qui permet d'intégrer rapidement le seamless Cosna_Wallet.
Pourquoi uliser ce package node
- Accepter des paiements uniquement provenant des wallet cosna
Installation
With [npm] do
npm i cosna_wallet
Effectuer un paiement
const md5 = require( "md5");
const { WalletSdk, inintPayment } = require("cosna_wallet")
var master_key = 'master_key_erh7mLB5eB4C1PbMOn3h348HfAAv55Y9'
var private_key ='private_key_fdwbGpw6ZbdM9PRoCNhEPbH7Jm6yTP7i'
const wallet = WalletSdk(master_key,private_key)
var param = {
amount:200,
currency:'XAF',
return_url:'https://cosna-afrique.com/',
cancel_url:'https://cosna-afrique.com/',
callback_url:'https://cosna-afrique.com/'
}
param.hash = md5(param.amount+param.currency),
inintPayment(param)
.then(response=> console.log(response))
.catch(err => console.log(err))