Skip to content

Create a Bank Code module #57

@morukele

Description

@morukele

At the moment, to get the bank code for certain countries, you have to call the list_bank endpoint on the Paystack API. This is alright, but then just another network call.

I would like to have a module that contains all the bank codes separated by country. Something like:

   let bank_code = BankCode::NG::GTB

This should give a bank code for Guarantee Trust Bank. The general schema should be something like BankCode::CountryCode::BankShortName.

The alternative to this is having a method in the crate that allows the user to pass the bank name and get the code as a result. The problem could be that the wrong bank code is returned or no code is found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfirstissue.devGood first issues for new open source contributorsgood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions