mangopay v0.1.0 MangoPay.PayIn.Card.Web
Functions for MangoPay pay in.
Link to this section Summary
Link to this section Functions
Link to this function
create(params)
Create a payin.
Examples
params = %{
"Tag": "custom meta",
"AuthorId": "8494514",
"CreditedUserId": "8494514",
"DebitedFunds": %{
"Currency": "EUR",
"Amount": 12
},
"Fees": %{
"Currency": "EUR",
"Amount": 12
},
"ReturnURL": "http://www.my-site.com/returnURL/",
"CreditedWalletId": "8494559",
"CardType": "CB_VISA_MASTERCARD",
"SecureMode": "DEFAULT",
"Culture": "EN",
"TemplateURLOptions": %{
"Payline": "https://www.mysite.com/template/"
},
"StatementDescriptor": "Mar2016"
}
{:ok, payin} = MangoPay.PayIn.Card.Web.create(params)
Link to this function
create!(params)
Create a payin.
Examples
params = %{
"Tag": "custom meta",
"AuthorId": "8494514",
"CreditedUserId": "8494514",
"DebitedFunds": %{
"Currency": "EUR",
"Amount": 12
},
"Fees": %{
"Currency": "EUR",
"Amount": 12
},
"ReturnURL": "http://www.my-site.com/returnURL/",
"CreditedWalletId": "8494559",
"CardType": "CB_VISA_MASTERCARD",
"SecureMode": "DEFAULT",
"Culture": "EN",
"TemplateURLOptions": %{
"Payline": "https://www.mysite.com/template/"
},
"StatementDescriptor": "Mar2016"
}
payin = MangoPay.PayIn.Card.Web.create!(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)