const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let user = {
Id: '146476890',
}
const getRegulatoryStatus = async (userId) => {
return await mangopay.Users.getRegulatory(userId)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
getRegulatoryStatus(user.Id)
{
"ActionCode": "008701",
"ScopeBlocked": {
"Inflows": true,
"Outflows": false
},
"Id": "146476890"
}
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let user = {
Id: '146476890',
}
const getRegulatoryStatus = async (userId) => {
return await mangopay.Users.getRegulatory(userId)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
getRegulatoryStatus(user.Id)
{
"ActionCode": "008701",
"ScopeBlocked": {
"Inflows": true,
"Outflows": false
},
"Id": "146476890"
}
200
{
"ActionCode": "008701",
"ScopeBlocked": {
"Inflows": true,
"Outflows": false
},
"Id": "146476890"
}
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
let user = {
Id: '146476890',
}
const getRegulatoryStatus = async (userId) => {
return await mangopay.Users.getRegulatory(userId)
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
getRegulatoryStatus(user.Id)
Was this page helpful?