Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinkarundu committed Oct 29, 2018
2 parents 91bf2e9 + 2b84977 commit 9ed6612
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Instantiating the class will give you an object with available methods
- `mobileCheckout($options)`: Charge a customers mobile money account

- `productName`: Payment product on Africa's Talking. `REQUIRED`
- `providerChannel`: Provider channel to consider when charging.
- `phoneNumber`: Customer phone number (in international format). `REQUIRED`
- `currencyCode`: 3-digit ISO format currency code (e.g `KES`, `USD`, `UGX` etc). `REQUIRED`
- `amount`: Amount to charge. `REQUIRED`
Expand Down
4 changes: 4 additions & 0 deletions src/Payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ protected function doMobileCheckout($options)
$requestData['metadata'] = $options['metadata'];
}

if (!empty($options['providerChannel'])) {
$requestData['providerChannel'] = $options['providerChannel'];
}

// Make request data array
$response = $this->client->post('mobile/checkout/request', ['json' => $requestData]);
return $this->success($response);
Expand Down

0 comments on commit 9ed6612

Please sign in to comment.