-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added new API endpoints (#366)
- Loading branch information
1 parent
2180c8c
commit 0f90a48
Showing
27 changed files
with
1,729 additions
and
76 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,16 +7,16 @@ on: | |
- cron: '30 20 * * *' | ||
jobs: | ||
semgrep: | ||
name: Scan | ||
runs-on: [ubuntu-latest] # nosemgrep : semgrep.dev/s/swati31196:github_provided_runner | ||
name: Semgrep | ||
runs-on: [ubuntu-latest] | ||
container: | ||
image: returntocorp/semgrep | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: returntocorp/semgrep-action@v1 | ||
with: | ||
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }} | ||
publishDeployment: 339 | ||
- uses: actions/[email protected] | ||
- name: Run semgrep | ||
run: semgrep ci | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} | ||
|
||
workflow_status: | ||
runs-on: [ ubuntu-latest ] # nosemgrep : semgrep.dev/s/swati31196:github_provided_runner | ||
|
@@ -48,4 +48,4 @@ jobs: | |
curl -X POST -H "Content-Type: application/json" -H "Authorization: token ${{ github.token }}" \ | ||
-d '{ "state" : "success" , "context" : "github/security-status-check" , "description" : "github/security-status-check", "target_url" : "https://github.com/${{ github.repository }}" }' \ | ||
https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.githubCommit }} | ||
exit 0 | ||
exit 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
### Iin | ||
|
||
### Token IIN API | ||
|
||
```php | ||
$tokenIin = "412345"; | ||
$api->iin->fetch($tokenIin); | ||
``` | ||
|
||
**Parameters:** | ||
|
||
| Name | Type | Description | | ||
|------------|--------|-----------------------------------| | ||
| tokenIin* | string | The token IIN. | | ||
|
||
**Response:** | ||
```json | ||
{ | ||
"iin": "412345", | ||
"entity": "iin", | ||
"network": "Visa", | ||
"type": "credit", | ||
"sub_type": "business", | ||
"issuer_code": "HDFC", | ||
"issuer_name": "HDFC Bank Ltd", | ||
"international": false, | ||
"is_tokenized": true, | ||
"card_iin": "411111", | ||
"emi":{ | ||
"available": true | ||
}, | ||
"recurring": { | ||
"available": true | ||
}, | ||
"authentication_types": [ | ||
{ | ||
"type":"3ds" | ||
}, | ||
{ | ||
"type":"otp" | ||
} | ||
] | ||
} | ||
``` | ||
------------------------------------------------------------------------------------------------------- | ||
|
||
### Fetch All IINs Supporting Native OTP | ||
|
||
```php | ||
$api->iin->all(array("flow" => "otp")); | ||
``` | ||
|
||
**Response:** | ||
```json | ||
{ | ||
"count": 24, | ||
"iins": [ | ||
"512967", | ||
"180005", | ||
"401704", | ||
"401806", | ||
"123456", | ||
"411111", | ||
"123512967", | ||
"180012305", | ||
"401123704" | ||
] | ||
} | ||
``` | ||
------------------------------------------------------------------------------------------------------- | ||
|
||
### Fetch All IINs with Business Sub-type | ||
|
||
```php | ||
$api->iin->all(array("sub_type" => "business")); | ||
``` | ||
|
||
**Response:** | ||
```json | ||
{ | ||
"count": 24, | ||
"iins": [ | ||
"512967", | ||
"180005", | ||
"401704", | ||
"401806", | ||
"607389", | ||
"652203", | ||
"414367", | ||
"787878", | ||
"123456", | ||
"411111", | ||
"123512967", | ||
"180012305", | ||
"401123704" | ||
] | ||
} | ||
``` | ||
------------------------------------------------------------------------------------------------------- | ||
|
||
**PN: * indicates mandatory fields** | ||
<br> | ||
<br> | ||
**For reference click [here](https://razorpay.com/docs/api/payments/cards/iin-api/#iin-entity)** |
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
Oops, something went wrong.