
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
node-mangopay
Advanced tools
npm install node-mangopay --save
Two way of create instance of node-mangopay object
var mangopay=require("node-mangopay")({
clientid:"*******", // Client id of mangopay
passphrase:"************************", //passphrase string
production:false, //optional by default is false
version:"v2.01" //optional by defaulr version is 2.01
});
* OR
var mangopay=require("node-mangopay");
var mango=new mangopay({
clientid:"*******",
passphrase:"************************",
production:false, //optional by default is false
version:"v2.01" //optional by defaulr version is 2.01
});
var data={
FirstName: "Happy" // Required
,
LastName: "kaur" // Required
,
Birthday: 1300186358 // Required
,
Nationality: "FR" // Required - default: 'FR'
,
CountryOfResidence: "FR" // Required - default: 'FR'
,
Occupation: "Devoeloper",
IncomeRange: "6",
ProofOfIdentity: "",
ProofOfAddress: "",
PersonType: "NATURAL",
Email: "harry@gmail.com",
Tag: "custom tag",
Address: {
AddressLine1: "4101 Reservoir Rd NW",
AddressLine2: "",
City: "Washington",
Region: "District of Columbia",
PostalCode: "20007",
Country: "US"
}
};
mango.createNaturalUser(data,function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
mango.updateNaturalUser({mangoPayId:"39273181",LastName:"xyz"},function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
mango.viewUser({
"mangoPayId": "1463440221",
},function(err,result){
if(err)
console.log(err);
else
console.log(result);
})
mango.listUsers({
"Page": 1,
"Per_Page": 25,
"Sort": "CreationDate:ASC",
"BeforeDate": 1463440221,
"AfterDate": 1431817821
},function(err,result){
if(err)
console.log(err);
else
console.log(result);
})
var data={
"Tag": "custom meta",
"HeadquartersAddress": {
"AddressLine1": "1 test Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"LegalPersonType": "BUSINESS",
"Name": "Test Ltd",
"LegalRepresentativeAddress": {
"AddressLine1": "1 test Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"LegalRepresentativeBirthday": 1463496101,
"LegalRepresentativeCountryOfResidence": "ES",
"LegalRepresentativeNationality": "FR",
"LegalRepresentativeEmail": "test@gmail.com",
"LegalRepresentativeFirstName": "Joe",
"LegalRepresentativeLastName": "Blogs",
"Email": "test@gmail.com",
"CompanyNumber": "LU72HN11"
};
mango.createLegalUser(data,function(err,result){
if(err)
console.log(err);
else
console.log(result);
})
var data={
"legalUserId":"1245211",
"Tag": "custom meta",
"Name":"Jon"
};
mango.updateLegalUser(data,function(err,result){
if(err)
console.log(err);
else
console.log(result);
})
mango.createWallet({
"Tag": "custom meta",
"Owners": [ "39273181" ], //mangopayID
"Description": "wallet description",
"Currency": "EUR"
},function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
mango.viewWallet({
"walletId": "39280469",
},function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
mango.updateWallet({
"walletId": "39280469",
"Tag": "custom meta",
},function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
mango.listWallets({
"mangoPayId": "39280469",
},function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
var data={
Tag:"create card",
mangoPayId:"39273181",
currency:"EUR",
cardType:"CB_VISA_MASTERCARD",
cardNumber:"497010000000015",
cardExpirationDate:"1020",
cardCvx:"123"
};
mango.createCardAuto(data,function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
mango.viewCard({cardId:"39285307"},function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
mango.userCards({mangoPayId:"39273181"},function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
mango.deactivateCard({cardId:"39285307",active:false},function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
1 Create a Card Direct PayIn
var data={
"Tag": "custom meta",
"AuthorId": "38976011",
"CreditedUserId": "38976011",
"CreditedWalletId": "38980242",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 12
},
"Fees": {
"Currency": "EUR",
"Amount": 1
},
"SecureModeReturnURL": "http://www.my-site.com/returnURL",
"CardId": "38978448",
"SecureMode": "DEFAULT",
"StatementDescriptor": "Mar2017"
}
mango.cardDirectPayin(data,function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
var data={
"Tag": "custom meta",
"AuthorId": "38976011",
"CreditedUserId": "38976011",
"DebitedFunds": {
"Currency": "EUR",
"Amount": 12
},
"Fees": {
"Currency": "EUR",
"Amount": 12
},
"DebitedWalletId": "38980242",
"CreditedWalletId": "39280469"
}
mango.transferWallet(data,function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
mango.addBankIban({
"mangopayId":"38976011",
"Tag": "custom meta",
"OwnerAddress": {
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"IBAN": "FR3020041010124530725S03383",
"BIC": "CRLYFRPP"
},function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
mango.viewBank({
bankId:"39797690", // bankid
mangopayId:"38976011" // mango pay id
},function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
var opt={
"Tag": "Transferred money from wallet to your bank account",
"AuthorId": "38976011", //mangopay id
"DebitedFunds": {
"Currency": "EUR",
"Amount": 10
},
"Fees": {
"Currency": "EUR",
"Amount": 0
},
"BankAccountId": 39797690, //bank account id
"DebitedWalletId": 38980242, // wallet id
"BankWireRef": "invoice"
};
mango.bankPayout(opt,function(err,result){
if(err)
console.log(err);
else
console.log(result);
});
FAQs
mangopay package for payment implementation with nodejs
We found that node-mangopay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.