API Reference Paypal v#0.1.1
View SourceModules
Paypal is a micro-payments platform that helps you to get payments in an easy way for your website. You only need to open an account, retrieve the API key information and you can start.
Paypal requires to have an authenticated token to interact. This module helps to generate a token time to time (before it's expired) and ensure we have always the correct one.
The access structure has the information for accessing to the rest of the requests and the information about the expiration of the token.
Paypal requires to have an authenticated token to interact. This module helps to generate a token time to time (before it's expired) and ensure we have always the correct one.
The worker is performing the refresh of the token.
Most of the currencies in the Paypal requests and responses are handled
as a JSON object that is including currency_code
and value
. But it's
even more complex in other requests.
When something goes wrong, Paypal is replying us with an error message and this is the struct for retrieving this kind of errors.
Each detail implemented for the error.
The link is accumulating all of the required information for handling the HATEOAS links.
The operation is the struct where we store the information for the operations performed in orders and payments. Most of the requests that are performing an action is returning an operation.
Ecto Helpers is a module that is ensuring we have the common functions in use for most of the schemas or modules that uses Ecto.
The orders is the element that let us to charge an amount to the clients.
Authorization is the information embebed into the
Paypal.Order.Authorized
for getting all of the information for the
authorized payment.
Seller protection gives us information about if the protection of the seller is elegible and the categories for the disputes.
The authorized struct is the response performed by Paypal.Order.authorize/1
where we can see the status of the authorization and other information
related to the request.
Purchase Unit has the information for each detail line in the bought items.
The payment define the list of authorizations that are included inside of the authorized order.
Create an order. It contains the information for creating an order.
The experience context is the information needed for creating an order and provide information about how Paypal should behave when we go to its website for performing the payment.
Order information. The information retrieved from Paypal about the order.
Payer get all the information about who's paying the order.
The purchase unit is the information for each unit purchased (or to purchase) included in an order.
Represents a Capture object from the PayPal v2 PurchaseUnit API.
The item inside of each purchase unit.
See Paypal.Order.PurchaseUnit
.
Represents a Payment Collection object from the PayPal v2 API.
The UPC EAN code.
Perform payment actions for Paypal. The payments are authorized orders.
You can see further information via Paypal.Order
.
The returned information after performing a capture of an authorized order.
Authorized order information.
Payment refund information. The information retrieved from Paypal about the refund.
Request object that Refunds a captured payment, by ID. For a full refund,
include an empty request body. For a partial refund, include an amount
object in the request body.