Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolletNjora committed Nov 3, 2021
2 parents 004f89d + 2c2077e commit e030769
Show file tree
Hide file tree
Showing 22 changed files with 401 additions and 204 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@ For more information, please read <https://api-docs.kopokopo.com/#receive-paymen
- External Till Recipient(`till`)
- `tillNumber`: Pay recipient's till number `REQUIRED`
- `tillName`: Pay recipient's till name `REQUIRED`
- Kopo Kopo Merchant(`kopo_kopo_merchant`)
- `tillNumber`: Pay recipient's till number `REQUIRED`
- `aliasName`: Pay recipient's alias name `REQUIRED`
- Paybill(`paybill`)
- `paybillName`: Pay recipient's paybill name `REQUIRED`
- `paybillNumber`: Pay recipient's paybill number `REQUIRED`
- `paybillAccountNumber`: Pay recipient's account number `REQUIRED`
- `accessToken`: Gotten from the [`TokenService`](#tokenservice) response `REQUIRED`

- `PayService->sendPay([ payOptions ])`: `payOptions`: An array of arrays containing the following keys:
Expand All @@ -219,6 +220,9 @@ For more information, please read <https://api-docs.kopokopo.com/#receive-paymen
- `currency`: 3-digit ISO format currency code. `REQUIRED`
- `amount`: Amount to charge. `REQUIRED`
- `callbackUrl`: Url that the [result](#responsesandresults) will be posted to `REQUIRED`
- `description`: Payment description `REQUIRED`
- `tags`: Tags associated with the payment
- `category`: Category that the payment belongs to
- `accessToken`: Gotten from the [`TokenService`](#tokenservice) response `REQUIRED`
- `metadata`: It is a hash containing a maximum of 5 key value pairs

Expand Down Expand Up @@ -605,10 +609,11 @@ Note: The asynchronous results are processed like webhooks.
- `tillNumber`
- `tillName`

- If `recipientType == "Kopo Kopo Merchant"`
- If `recipientType == "Paybill"`

- `tillNumber`
- `aliasName`
- `paybillName`
- `paybillNumber`
- `paybillAccountNumber`

- Stk Push Status

Expand Down
8 changes: 7 additions & 1 deletion example/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@
"email": "nicollet.njora05@gmail.com"
}
],
"repositories": [
{
"type": "git",
"url": "https://github.com/kopokopo/k2-connect-php.git"
}
],
"require": {
"altorouter/altorouter": "1.1.0",
"vlucas/phpdotenv": "^5.3@dev",
"kopokopo/k2-connect-php": "dev-development"
}
}
}
Loading

0 comments on commit e030769

Please sign in to comment.