Created
November 22, 2019 08:47
-
-
Save mathemandy/5a33c4147991fdf113c61b093feec6cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const apiUrl = `https://api.paystack.co/bank/resolve?account_number=${accountNumber}&bank_code=${bankCode}`; | |
const headers = { | |
headers: { | |
Authorization: `Bearer ${PAYSTACK_SECRET}` | |
} | |
}; | |
return axios.get(apiUrl, headers); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment