Paddle.ProductPayment.refund

You're seeing just the function refund, go back to Paddle.ProductPayment module for more information.
Link to this function

refund(order_id, params \\ %{})

View Source

Specs

refund(String.t(), map()) :: {:ok, integer()} | {:error, Paddle.Error.t()}

Request a refund for a one-time or subscription payment, either in full or partial

Note that refunds are not immediate and will be reviewed and approved by our buyer support team.

Examples

Paddle.ProductPayment.refund(10)
{:ok, 12345}