pay_pal v0.0.5 PayPal.Payments.Captures

Documentation for PayPal.Payments.Captures

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

Link to this section Summary

Functions

Refund a captured payment

Show a captured payment

Link to this section Functions

Link to this function refund(payment_id, params)
refund(String.t(), map()) :: {atom(), any()}

Refund a captured payment

docs

Possible returns:

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

Examples

iex> PayPal.Payments.Captures.refund(payment_id, %{

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

})

Link to this function show(capture_id)
show(String.t()) :: {atom(), any()}

Show a captured payment

docs

Possible returns:

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

Examples

iex> PayPal.Payments.Captures.show(capture_id)