const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
const listCountryAuthorizations = async () => {
return await mangopay.Regulatory.getAllCountriesAuthorizations()
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
listCountryAuthorizations()
[
{
"CountryCode":"FI",
"CountryName":"Finland",
"Authorization":{
"BlockUserCreation":false,
"BlockBankAccountCreation":false,
"BlockPayout":false
},
"LastUpdate":1644574249
},
{
"CountryCode":"FR",
"CountryName":"France",
"Authorization":{
"BlockUserCreation":false,
"BlockBankAccountCreation":false,
"BlockPayout":false
},
"LastUpdate":1644574249
}
]
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
const listCountryAuthorizations = async () => {
return await mangopay.Regulatory.getAllCountriesAuthorizations()
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
listCountryAuthorizations()
[
{
"CountryCode":"FI",
"CountryName":"Finland",
"Authorization":{
"BlockUserCreation":false,
"BlockBankAccountCreation":false,
"BlockPayout":false
},
"LastUpdate":1644574249
},
{
"CountryCode":"FR",
"CountryName":"France",
"Authorization":{
"BlockUserCreation":false,
"BlockBankAccountCreation":false,
"BlockPayout":false
},
"LastUpdate":1644574249
}
]
200
Show properties
Show properties
Hide properties
[
{
"CountryCode":"FI",
"CountryName":"Finland",
"Authorization":{
"BlockUserCreation":false,
"BlockBankAccountCreation":false,
"BlockPayout":false
},
"LastUpdate":1644574249
},
{
"CountryCode":"FR",
"CountryName":"France",
"Authorization":{
"BlockUserCreation":false,
"BlockBankAccountCreation":false,
"BlockPayout":false
},
"LastUpdate":1644574249
}
]
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
const listCountryAuthorizations = async () => {
return await mangopay.Regulatory.getAllCountriesAuthorizations()
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
listCountryAuthorizations()
Was this page helpful?