PayPing (PayPing v0.1.1)

PayPing API client for the Elixir language

Link to this section Summary

Functions

Get configuration

Create a Payment code

Verify a Payment

Link to this section Types

Link to this type

http_error()

Specs

http_error() :: {:error, integer(), term()}

Specs

verify_ok() ::
  {:ok, integer(),
   %{amount: integer(), cardNumber: String.t(), cardHashPan: String.t()}}
Link to this type

verify_params()

Specs

verify_params() :: %{refId: String.t(), amount: integer()}

Link to this section Functions

Link to this function

config()

(since 0.1.0)

Specs

config() :: %{base_url: String.t(), token: String.t()}

Get configuration

Link to this function

pay(params)

(since 0.1.0)

Specs

pay(%{
  :amount => integer(),
  optional(:payerIdentity) => String.t(),
  optional(:payerName) => String.t(),
  optional(:description) => String.t(),
  :returnUrl => String.t(),
  optional(:clientRefId) => String.t()
}) :: {:ok, integer(), %{code: String.t()}} | http_error()

Create a Payment code

Link to this function

verify(params)

(since 0.1.0)

Specs

verify(params :: verify_params()) :: verify_ok() | http_error()

Verify a Payment