Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
woynshetb committed Dec 30, 2024
1 parent 0680a32 commit dcec34d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ The official **Chapa Flutter SDK** enables Flutter developers to integrate Chapa

Add the following dependency to your `pubspec.yaml` file:

```dependencies:
```yaml
dependencies:
chapasdk: ^latest_version
```
Then, run the command:
```flutter pub get
```bash
flutter pub get
```

---
Expand Down Expand Up @@ -81,7 +83,8 @@ Chapa.paymentParameters(
## **Payment Responses**

### For Native Checkout:
```{
```json
{
"message": "Any Descriptive message regarding the payment status",
"transactionReference": "txn_12345",
"paidAmount": "1.00"
Expand All @@ -90,21 +93,24 @@ Chapa.paymentParameters(

### For Web Checkout:
#### Payment Canceled:
```{
```json
{
"message": "paymentCancelled",
"transactionReference": "txn_12345",
"paidAmount": "0.00"
}
```
#### Payment Successful:
```{
```json
{
"message": "paymentSuccessful",
"transactionReference": "txn_12345",
"paidAmount": "1.00"
}
```
#### Payment Failed:
```{
```json
{
"message": "paymentFailed",
"transactionReference": "txn_12345",
"paidAmount": "0.00"
Expand Down

0 comments on commit dcec34d

Please sign in to comment.