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

Copy Markdown View Source

Setu WhatsApp Collect client.

Setu docs: https://docs.setu.co/payments/whatsapp-collect

Summary

Functions

Fetches the delivery and payment status of a sent reminder.

Sends a WhatsApp bill payment reminder with an embedded payment link.

Functions

get_reminder_status(cfg, id)

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

Fetches the delivery and payment status of a sent reminder.

GET /v1/whatsapp/bills/{id}

send_reminder(cfg, params)

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

Sends a WhatsApp bill payment reminder with an embedded payment link.

Required params

  • :customer_mobile, :bill_amount (paise), :biller_bill_id

POST /v1/whatsapp/bills