Skip to main content
POST
Start PayPal Checkout

Overview

Initiates a PayPal checkout by creating a PayPal Express Checkout order on the merchant. Returns the cart enriched with a payment_method object containing the PayPal EC paypal_token and the PayPal approval url. The buyer approves the payment on PayPal (via the PayPal SDK button or by opening the approval URL); the approval returns a payer_id and paypal_token that you pass to Authorize.
PayPal is enabled per merchant. Check the cart’s payment_method_options array for { "type": "PayPal", "wallet": "paypal", "config": { ... } } before offering PayPal; config carries the PayPal SDK settings (clientId, merchantId, sandbox, intent, integration_version, mode).

Authentication

string
required
Device authentication token from Browser Session

Path Parameters

string
required
The merchant domain (e.g., “merchant.example.com”)

Request Body

object
Optional gateway-specific attributes. Omit or send an empty object for PayPal.

Response

Returns the cart enriched with the PayPal payment method.
string
Unique identifier for the cart
array
Array of items in the cart
object
PayPal payment method details
object
Grand total including all costs
object
Subtotal before shipping and tax

Code Example

Response Example

Error Responses