Lodol Docs

PayPal

API actions for the PayPal integration.

PayPal

Accept payments, manage catalog products, and automate billing with PayPal.


Capture a PayPal order

Collect (capture) the payment for an approved PayPal order.

Parameters

ParameterTypeRequiredDescription
order_idstringYesThe ID of the order to collect payment for

Response

{}

Create a PayPal order

Create a PayPal checkout order ready for buyer approval.

Parameters

ParameterTypeRequiredDescription
amountnumberYesOrder amount
currencystringYesCurrency code (e.g. USD)
descriptionstringNoOrder description

Response

{}

Create a PayPal billing plan

Create a recurring billing plan for a PayPal product.

Parameters

ParameterTypeRequiredDescription
product_idstringYesThe ID of the PayPal product this plan is for
namestringYesPlan name
interval_unitstringYesHow often to bill, such as DAY, WEEK, MONTH, or YEAR
interval_countnumberYesHow many units between each charge. For example, 3 with MONTH bills every 3 months.
currencystringYesBilling currency
amountnumberYesRecurring charge amount

Response

{}

Create a PayPal product

Add a product to your PayPal catalog so it can be used in billing plans.

Parameters

ParameterTypeRequiredDescription
namestringYesProduct name
descriptionstringNoProduct description
categorystringNoProduct category, for example SOFTWARE

Response

{}

Get PayPal order details

Look up the current status and details of a PayPal order.

Parameters

ParameterTypeRequiredDescription
order_idstringYesThe ID of the order to look up

Response

{}

Refund a PayPal payment

Issue a partial or full refund for a captured PayPal payment.

Parameters

ParameterTypeRequiredDescription
capture_idstringYesThe ID of the captured payment to refund
amountnumberNoAmount to refund. Leave blank to refund the full amount.
currencystringNoCurrency code for the refund (e.g. USD). Required when you enter an amount.

Response

{}

On this page