Insurance

Insurance

Manages insurance premium payments.

Constructor

new Insurance()

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 insurance providers supported by Rocket in Pocket API.

Source:

(async) Pay(creds)

Makes the bill payment of Insurance policy.

Parameters:
Name Type Description
creds

Merchant credentials to access Rocket in Pocket API

Source: