Skip to content

Commit

Permalink
Fix minor typos,update README table and change the status to official…
Browse files Browse the repository at this point in the history
… Laravel SDK
  • Loading branch information
isrugeek committed May 22, 2023
1 parent dae70f8 commit 9b1d0ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<a href="http://chapa.co/" target="_blank">
<img src="https://assets.chapa.co/assets/images/chapa-logo.svg" width="320" alt="Chapa Logo"/>
</a>
<p align="center">Unofficial laravel package for Chapa's API (Laravel 5,6,7,9 )</p>
<p align="center">Official Laravel package for Chapa's API (Laravel 5,6,7,9,10)</p>
</div>
</h1>

If your are doing a laravel project and want to integrate chapa's payment
If your are doing a Laravel project and want to integrate Chapa's payment
solution, this package would help big time.

Go to [Chapa](https://dashboard.chapa.co/) to signup and get your public and private key
Go to [Chapa](https://dashboard.chapa.co/) to signup and get your secret key

## Documentation

Expand All @@ -22,14 +22,14 @@ Please visit [Developers Guide](https://developer.chapa.co/laravel-sdk/) for ful

### Usage

You can check [this](https://github.com/Chapa-Et/sdk-examples/tree/master/chapa-laravel-example) sample laravel code as a reference.
You can check [this](https://github.com/Chapa-Et/sdk-examples/tree/master/chapa-laravel-example) sample Laravel code as a reference.

### Configuration

Open your .env file and add your public key, secret keys, and other environment variables like this:

```
CHAPA_SECRET_KEY=FLWSECK-xxxxxxxxxxxxxxxxxxxxx-X
CHAPA_SECRET_KEY=CHAPA-SECK-xxxxxxxxxxxxxxxxxxxxx-X
```

## Features
Expand All @@ -51,12 +51,12 @@ The current features have been implemented
| :--------------------------- | :------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `key` | `string` | **Yes**. | This will be your public key from Chapa. When on test mode use the test key, and when on live mode use the live key. |
| `email` | `string` | **No**. | A customer’s email. address. |
| `phone_number` | `numeric` | **No**. | A customer’s phone number. address. |
| `amount` | `string` | **Yes**. | The amount you will be charging your customer. |
| `first_name` | `string` | **No**. | A customer’s first name. |
| `last_name` | `string` | **No**. | A customer’s last name. |
| `tx_ref` | `string` | **Yes**. | A unique reference given to each transaction. |
| `callback_url` | `string` | **No**. | Function that runs when payment is successful. This should ideally be a script that uses the verify endpoint on the Chapa API to check the status of the transaction.

| `callback_url` | `string` | **No**. | Function that runs when payment is successful. This should ideally be a script that uses the verify endpoint on the Chapa API to check the status of the transaction. |
| `return_url` | `string` | **No**. | A web address provided by the merchant to a payment gateway during payment integration. It serves as the destination where the payment gateway sends the customer after completing a payment transaction. |
| `currency` | `string` | **Yes**. | The currency in which all the charges are made. Currency allowed is ETB. |
| `customization[tiitle] ` | `string` | **No**. | The customizations field (optional) allows you to customize the look and feel of the payment modal. You can set a logo, the store name to be displayed (title), and a description for the payment.. |
Expand Down

0 comments on commit 9b1d0ca

Please sign in to comment.