Gas

Gas

Manages gas bill payments.

Constructor

new Gas()

Source:

Methods

(async, static) CheckStatus(transactionID)

Checks status of a previously submitted bill payment request. We make use of Rocket in Pocket callbacks for status updates. So this is largely implemented as a backup in case RIP callback systems fail.

Parameters:
Name Type Description
transactionID

Magic Batua transaction ID of the recharge request

Source:

(async, static) GetProviders()

Returns a list of all gas providers supported by Rocket in Pocket API.

Source:

(async) Pay(creds, amount, extra)

Makes the bill payment of gas connection.

In case of Mahanagar Gas, you must send billGroup information through the optional extra parameter.

Parameters:
Name Type Description
creds

Merchant credentials to access Rocket in Pocket API

amount

In Rupees. Must be exact due amount.

extra

Any optional parameters.

Source: