mangopay v0.1.0 MangoPay.Refund.PayIn
Functions for MangoPay refund.
Link to this section Summary
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)
Link to this function
path()
Get path called.
Examples
"/users" = MangoPay.User.path()
Link to this function
path(id)
Get path called.
Examples
"/users/id" = MangoPay.User.path(id)