pay_pal v0.0.2 PayPal.Payments.Sales

Documentation for PayPal.Payments.Sales

A sale is a completed payment.

https://developer.paypal.com/docs/api/payments/#sale

Summary

Functions

Refund a sale

Show a sale

Functions

refund(sale_id, params)
refund(String.t, map) :: {atom, any}

Refund a sale

docs

Possible returns:

  • {:ok, sale}
  • {:error, refund}

Examples

iex> PayPal.Payments.Sales.refund(sale_id, %{

amount: %{
  total: "1.50",
  currency: "USD"
}

})

show(sale_id)
show(String.t) :: {atom, any}

Show a sale

docs

Possible returns:

  • {:ok, sale}
  • {:error, reason}

Examples

iex> PayPal.Payments.Sales.show(sale_id)