Skip to content

Commit 84ba5f2

Browse files
committed
Enhance README.md with badges for version, downloads, and license; improve formatting for better readability of JSON response and callback fields.
1 parent 93021c0 commit 84ba5f2

1 file changed

Lines changed: 38 additions & 32 deletions

File tree

README.md

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Nass Payment Gateway — Laravel SDK
22

3+
<p align="center">
4+
<a href="https://packagist.org/packages/rstacode/nass"><img src="https://img.shields.io/packagist/v/rstacode/nass.svg?style=flat-square" alt="Latest Version on Packagist"></a>
5+
<a href="https://packagist.org/packages/rstacode/nass"><img src="https://img.shields.io/packagist/dt/rstacode/nass.svg?style=flat-square" alt="Total Downloads"></a>
6+
<a href="https://packagist.org/packages/rstacode/nass"><img src="https://img.shields.io/packagist/l/rstacode/nass.svg?style=flat-square" alt="License"></a>
7+
</p>
8+
39
<img width="3000" height="1674" alt="Image" src="https://github.com/user-attachments/assets/65f356bb-4f70-4613-8585-5fd4febb7672" />
410

511
Laravel SDK for the [Nass Payment Gateway](https://nass.iq) — Iraq's payment processing platform.
@@ -87,19 +93,19 @@ return redirect($paymentUrl);
8793

8894
```json
8995
{
90-
"success": true,
91-
"code": 0,
92-
"status_code": 200,
93-
"data": {
94-
"url": "https://3dsecure.nass.iq/gateway/{Transaction Parameters}",
95-
"pSign": "18f...",
96-
"transactionParams": {
97-
"TERMINAL": "<TERMINAL_ID>",
98-
"TRTYPE": "1",
99-
"AMOUNT": "150",
100-
"ORDER": "123456"
101-
}
96+
"success": true,
97+
"code": 0,
98+
"status_code": 200,
99+
"data": {
100+
"url": "https://3dsecure.nass.iq/gateway/{Transaction Parameters}",
101+
"pSign": "18f...",
102+
"transactionParams": {
103+
"TERMINAL": "<TERMINAL_ID>",
104+
"TRTYPE": "1",
105+
"AMOUNT": "150",
106+
"ORDER": "123456"
102107
}
108+
}
103109
}
104110
```
105111

@@ -145,19 +151,19 @@ public function handleCallback(Request $request): void
145151

146152
**Callback payload fields:**
147153

148-
| Field | Description |
149-
|---------------------|----------------------------------------------|
150-
| `terminal` | Terminal ID |
151-
| `actionCode` | `0` = success |
152-
| `responseCode` | `00` = approved |
153-
| `card` | Masked card number |
154-
| `amount` | Transaction amount |
155-
| `currency` | Currency code (368 = IQD) |
156-
| `rrn` | Reference number in acquiring bank |
157-
| `intRef` | Internal reference (used for reversals) |
158-
| `orderId` | Your order ID (stored 7 days only) |
159-
| `tranDate` | Transaction date/time |
160-
| `transactionOrigin` | `local` or `international` |
154+
| Field | Description |
155+
| ------------------- | --------------------------------------- |
156+
| `terminal` | Terminal ID |
157+
| `actionCode` | `0` = success |
158+
| `responseCode` | `00` = approved |
159+
| `card` | Masked card number |
160+
| `amount` | Transaction amount |
161+
| `currency` | Currency code (368 = IQD) |
162+
| `rrn` | Reference number in acquiring bank |
163+
| `intRef` | Internal reference (used for reversals) |
164+
| `orderId` | Your order ID (stored 7 days only) |
165+
| `tranDate` | Transaction date/time |
166+
| `transactionOrigin` | `local` or `international` |
161167

162168
---
163169

@@ -184,18 +190,18 @@ try {
184190

185191
Use these cards exclusively in the UAT environment:
186192

187-
| PAN | Expiry | CVV |
188-
|--------------------|--------|-----|
189-
| 5123450000000008 | 01/39 | 100 |
193+
| PAN | Expiry | CVV |
194+
| ---------------- | ------ | --- |
195+
| 5123450000000008 | 01/39 | 100 |
190196

191197
---
192198

193199
## API Environments
194200

195-
| Environment | Base URL |
196-
|-------------|---------------------------------------|
197-
| UAT | `https://uat-gateway.nass.iq:9746` |
198-
| Production | `https://gateway.nass.iq:9746` |
201+
| Environment | Base URL |
202+
| ----------- | ---------------------------------- |
203+
| UAT | `https://uat-gateway.nass.iq:9746` |
204+
| Production | `https://gateway.nass.iq:9746` |
199205

200206
---
201207

0 commit comments

Comments
 (0)