Paddle.ProductPayment (paddlex v0.1.0) View Source

ProductPayment

Link to this section Summary

Functions

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

Link to this section Functions

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}