mangopay v0.1.0 MangoPay.PayIn.Card.Direct

Functions for MangoPay pay in.

Link to this section Summary

Functions

Create a payin

Create a payin

Get path called

Get path called

Link to this section Functions

Create a payin.

Examples

params         = %{
  "Tag": "custom meta",
  "AuthorId": "8494514",
  "CreditedUserId": "8494514",
  "CreditedWalletId": "8494559",
  "DebitedFunds": %{
    "Currency": "EUR",
    "Amount": 12
  },
  "Fees": {
    "Currency": "EUR",
    "Amount": 12
  },
  "SecureModeReturnURL": "http://www.my-site.com/returnURL",
  "CardId": "14213157",
  "SecureMode": "DEFAULT",
  "Billing": %{
    "Address": %{
      "AddressLine1": "1 Mangopay Street",
      "AddressLine2": "The Loop",
      "City": "Paris",
      "Region": "Ile de France",
      "PostalCode": "75001",
      "Country": "FR"
    }
  },
  "StatementDescriptor": "Mar2016"
}
{:ok, payin} = MangoPay.PayIn.Card.Direct.create(params)
Link to this function create!(params)

Create a payin.

Examples

params         = %{
  "Tag": "custom meta",
  "AuthorId": "8494514",
  "CreditedUserId": "8494514",
  "CreditedWalletId": "8494559",
  "DebitedFunds": %{
    "Currency": "EUR",
    "Amount": 12
  },
  "Fees": {
    "Currency": "EUR",
    "Amount": 12
  },
  "SecureModeReturnURL": "http://www.my-site.com/returnURL",
  "CardId": "14213157",
  "SecureMode": "DEFAULT",
  "Billing": %{
    "Address": %{
      "AddressLine1": "1 Mangopay Street",
      "AddressLine2": "The Loop",
      "City": "Paris",
      "Region": "Ile de France",
      "PostalCode": "75001",
      "Country": "FR"
    }
  },
  "StatementDescriptor": "Mar2016"
}
payin = MangoPay.PayIn.Card.Direct.create!(params)

Get path called.

Examples

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

Get path called.

Examples

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