mangopay v0.1.0 MangoPay.Refund.PayIn

Functions for MangoPay refund.

Link to this section Summary

Functions

Create a refund for a pay in

Create a refund for a pay in

Get path called

Get path called

Link to this section Functions

Link to this function create(pay_in_id, params)

Create a refund for a pay in.

Examples

pay_in_id      = Id of a transfer
params        = %{
  "Tag": "custom meta",
  "AuthorId": "8494514",
  "DebitedFunds": %{
    "Currency": "EUR",
    "Amount": 12
  },
  "Fees": %{
    "Currency": "EUR",
    "Amount": 12
  }
}
{:ok, refund} = MangoPay.Refund.PayIn.create(pay_in_id, params)
Link to this function create!(pay_in_id, params)

Create a refund for a pay in.

Examples

pay_in_id = Id of a transfer
params    = %{
  "Tag": "custom meta",
  "AuthorId": "8494514",
  "DebitedFunds": %{
    "Currency": "EUR",
    "Amount": 12
  },
  "Fees": %{
    "Currency": "EUR",
    "Amount": 12
  }
}
refund    = MangoPay.Refund.PayIn.create(pay_in_id, params)

Get path called.

Examples

"/users" = MangoPay.User.path()

Get path called.

Examples

"/users/id" = MangoPay.User.path(id)