README.md in africastalking-ruby-2.1.1 vs README.md in africastalking-ruby-2.1.2

- old
+ new

@@ -279,10 +279,11 @@ - `productName`: Your Payment Product. `REQUIRED` - `phoneNumber`: The customer phone number (in international format; e.g. `25471xxxxxxx`). `REQUIRED` - `currencyCode`: 3-digit ISO format currency code (e.g `KES`, `USD`, `UGX` etc.) `REQUIRED` - `amount`: This is the amount. `REQUIRED` - `metadata`: Some optional data to associate with transaction.`OPTIONAL` + - `providerChannel`: This represents the payment channel the payment will be made from. eg paybill number. The payment channel must be mapped to you. The AfricasTalking default provider channel is used if not specified.`OPTIONAL` #### Mobile B2C ```ruby payments.mobileB2C options ``` @@ -329,9 +330,23 @@ - `destinationChannel`: This value contains the name or number of the channel that will receive payment by the provider. `REQUIRED` - `destinationAccount`: This value contains the account name used by the business to receive money on the provided destinationChannel. `REQUIRED` - `currencyCode`: 3-digit ISO format currency code (e.g `KES`, `USD`, `UGX` etc.) `REQUIRED` - `amount`: Payment amount. `REQUIRED` - `metadata`: Some optional data to associate with transaction.`REQUIRED` + +#### Mobile Data +```ruby +payments.mobileData options +``` +- `options` + - `productName`: Your Payment Product. `REQUIRED` + - `recipients`: A list of recipients. Each recipient has: + + - `phoneNumber`: Customer phone number (in international format). `REQUIRED` + - `quantity`: Mobile data amount. `REQUIRED` + - `unit`: Mobile data unit. Can either be `MB` or `GB`. `REQUIRED` + - `validity`: How long the mobile data is valid for. Must be one of `Daily`, `Weekly` and `Monthly`. `REQUIRED` + - `metadata`: Additional data to associate with the transaction. `REQUIRED` #### Wallet Transfer ```ruby payments.walletTransfer options ```