Lodol Docs

PayPal

API actions for the PayPal integration.

PayPal

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


Capture a PayPal order

Capture payment for an approved PayPal order.

Parameters

ParameterTypeRequiredDescription
order_idstringYesOrder ID to capture

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_idstringYesAssociated product ID
namestringYesPlan name
interval_unitstringYesBilling interval unit
interval_countnumberYesBilling interval count
currencystringYesBilling currency
amountnumberYesRecurring charge amount

Response

{}

Create a PayPal product

Create a catalog product to attach to billing plans.

Parameters

ParameterTypeRequiredDescription
namestringYesProduct name
descriptionstringNoProduct description
categorystringNoProduct category

Response

{}

Get PayPal order details

Retrieve the latest state for a PayPal order.

Parameters

ParameterTypeRequiredDescription
order_idstringYesOrder ID to fetch

Response

{}

Refund a PayPal capture

Issue a partial or full refund for a completed capture.

Parameters

ParameterTypeRequiredDescription
capture_idstringYesCapture ID to refund
amountnumberNoAmount to refund
currencystringNoCurrency for refund

Response

{}

On this page