okra-php is a PHP library for okra core products.
Use the package manager composer to install okra-php.
composer require horlarmeday/okra-php
okra-php provides the simple access to use okra core products which includes: Auth, Balance, Identity, Income and Transactions. To start you need to instantiate the Okra class, and pass your access token. All methods return array as response.
$okra = new Okra(ACCESS_TOKEN);
Okra offers a path for a customer to successfully verify their bank. The customer enters their credentials via the widget and are authenticated immediately.
This retrieves all auth information including bank account and routing numbers associated with a Record's current, savings, and domiciliary accounts.
Optionally pass a boolean true
to get a .pdf format
$okra->getAllAuth();
This retrieves auth information by id.
$okra->getAuthById();
This retrieves the auth information by the customer id.
$okra->getAuthByCustomer();
This retrieves the auth information by passing a date range. This method expects four (4) parameters.
startDate
, endDate
, page
and limit
. However the first two are required while last two are optional.
page
is stating the page number you wish to return while limit
is the number of records to return.
$okra->getAuthByDateRange('2020-05-13', '2020-05-20', 1, 20);
This retrieves the auth information by bank id. This method expects three (3) parameters.
bank_id
, page
and limit
. However page
and limit
are optional.
$okra->getAuthByBank();
This retrieves the auth information by customer id and date range.
customer_id
, startDate
and endDate
are required.
$okra->getAuthByCustomerDate();
Mahmud Ajao - @MahmudAjao1 - ajaomahmud@gmail.com
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.