const mangopayInstance = require('mangopay4-nodejs-sdk') const mangopay = new mangopayInstance({ clientId: 'your-client-id', clientApiKey: 'your-api-key', }) let myCountry = { code: 'FR' } const viewCountryAuthorizations = async (countryCode) => { return await mangopay.Regulatory.getCountryAuthorizations(countryCode) .then((response) => { console.info(response) return response }) .catch((err) => { console.log(err) return false }) } viewCountryAuthorizations(myCountry.code)
{ "CountryCode":"FR", "CountryName":"France", "Authorization":{ "BlockUserCreation":false, "BlockBankAccountCreation":false, "BlockPayout":false }, "LastUpdate":1463494366 }
200
Hide properties
Was this page helpful?