SetuClient.Payments.BillPay (Setu Client v1.0.0)

Copy Markdown View Source

Setu BBPS BillPay (agent-side) client.

Setu docs: https://docs.setu.co/payments/billpay

Summary

Functions

Fetches a customer's bill from a BBPS biller.

Pays a bill through the BBPS network.

Functions

fetch_bill(cfg, params)

@spec fetch_bill(SetuClient.Config.t(), map()) ::
  {:ok, map()} | {:error, SetuClient.Error.t()}

Fetches a customer's bill from a BBPS biller.

Required params

  • :biller_id, :customer_identifiers (map)

POST /v1/billpay/bills/fetch

pay_bill(cfg, params)

@spec pay_bill(SetuClient.Config.t(), map()) ::
  {:ok, map()} | {:error, SetuClient.Error.t()}

Pays a bill through the BBPS network.

Required params

  • :biller_id, :amount (paise), :payment_mode, :merchant_reference_id

POST /v1/billpay/bills/pay