diff --git a/README.md b/README.md index 3691792..27fadfb 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/src/Payments.php b/src/Payments.php index daf83f0..14bb3eb 100644 --- a/src/Payments.php +++ b/src/Payments.php @@ -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);