pay_pal v0.0.5 PayPal.Payments.Sales

Documentation for PayPal.Payments.Sales

A sale is a completed payment.

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

Link to this section Summary

Functions

Refund a sale

Show a sale

Link to this section Functions

Link to this function 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"
}

})

Link to this function 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)