Skip to content

Commit

Permalink
Merge pull request #34 from njoguamos/add-downloads-badge
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
njoguamos authored Feb 14, 2023
2 parents 0138ee3 + 8cc71c9 commit 428cf00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[![License](https://img.shields.io/github/license/njoguamos/laravel-jenga.svg)](https://github.com/njoguamos/laravel-jenga)
[![Latest Stable Version](https://img.shields.io/packagist/v/njoguamos/laravel-jenga.svg)](https://packagist.org/packages/njoguamos/laravel-jenga)
![Issues](https://img.shields.io/github/issues/njoguamos/laravel-jenga)
[![Total Downloads](https://img.shields.io/packagist/dt/njoguamos/laravel-jenga.svg?style=flat-square)](https://packagist.org/packages/njoguamos/laravel-jenga)

## 1. Why use this package
1. To provide a way of generating jenga api `access_token` after a give period e.g every 15 minutes
Expand Down
4 changes: 2 additions & 2 deletions src/Api/IDVerification.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function search(IDVerificationDto $data): string
"firstName" => $data->firstName,
"lastName" => $data->lastName,
"dateOfBirth" => Carbon::parse($data->dateOfBirth)->format(format: 'Y-m-d'),
"documentType" => $data->documentType ?: config(key: 'jenga.country'),
"countryCode" => $data->countryCode ?: 'ID'
"documentType" => $data->documentType ?: 'ID',
"countryCode" => $data->countryCode ?: config(key: 'jenga.country')
];

return Http::asJson()
Expand Down
2 changes: 0 additions & 2 deletions tests/Api/IDVerificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@
firstName: 'John',
lastName: 'Doe',
dateOfBirth: '20 June 1985',
documentType: 'ID',
countryCode: 'KE',
);


Expand Down

0 comments on commit 428cf00

Please sign in to comment.