PayPal

PayPal is a global online payment platform that allows individuals and businesses to send and receive money securely over the internet. Founded in 1998, it supports transactions in multiple currencies, offers buyer and seller protection, and can be linked to bank accounts, debit cards, or credit cards—making it a widely trusted option for e-commerce, freelance payments, and personal transfers worldwide. Learn more about PayPal.

🚧

PayPal is currently offered as processing only. Settlement and disputes are handled directly by PayPal.

Payment method properties

Markets (consumer)Global
Processing currenciesAUD BRL CAD CZK DKK EUR HKD HUF JPY MYR MXN NOK NZD PHP PLN GBP SGD SEK CHF TWD THB USD

IMPORTANT: ForHUF and TWD minor units are not supported. Always set the minor units to 00.
Consumer currenciesGlobal
Authentication methodsREDIRECT
Authentication timeout73 hours
Minimum payment amount0.01 USD or equivalent.
Maximum payment amountSubject to wallet balance, card limits or bank account balance (whichever is applicable).

PayPal may provide Pay Later options to consumers in select countries, depending on the transaction amount. Learn more.
Payment instrumentPASSTHROUGH_WALLET
Recurring paymentsNo
Separate capturesNo
RefundFull, Partial and multiple partial refunds available
Refund validity180 days
DisputesN/A processing only
Settlement riskN/A processing only
Sandbox availabilityPayPal sandbox

Make a PayPal payment

PayPal payments follow our standardized REDIRECT payment flow. Enabling you to offer a seamless desktop experience. We recommend including all relevant settings for any authentication methods you support.

To create a DOKU payment, you'll need to provide the following data at minimum when calling our payment charges API:

FieldDescription
paymentMethodPAYPALWALLET
amount.valueThe amount to be paid in the smallest units of the currency used.
amount.currencyAUD BRL CAD CZK DKK EUR HKD HUF JPY MYR MXN NOK NZD PHP PLN GBP SGD SEK CHF TWD THB USD
consumer.countryThe country where the consumer is shopping.
order.ShippingAddress.lastNameThe last name of the person holding the shipping address.
order.shippingAddress.streetStreet name, house number and other details such as apartment number or door number
order.shippingAddress.postalCodeThe address postal code.
order.shippingAddress.cityThe address city.
order.shippingAddress.countryThe address region.
authenticationSettings: REDIRECT
settings.returnUrl
Add the URL where the consumer should be redirected after they complete the payment. Required for the REDIRECT flow.

Request

POST /v1/payment-charges

{
    "paymentMethod": "PAYPALWALLET",
    "amount": {
        "value": 100,
        "currency": "USD"
    },
    "consumer": {
        "country": "US"
    },
    "order": {
        "shippingAddress": {
            "lastName": "Smith",
            "street": "Hellersbergstraße 14",
            "postalCode": "41460",
            "city": "Berlin",
            "country": "AU"
        }
    },
    "authenticationSettings": [
        {
            "type": "REDIRECT",
            "settings": {
                "returnUrl": "https://www.ppro.com/"
            }
        }
    ]
}

Response

You'll receive our standard payment charge response with the available authentication methods:

{
    "id": "charge_XysOj6Q0bWKTkqtrvEOg0",
    "paymentMethod": "PAYPALWALLET",
    "paymentMedium": "ECOMMERCE",
    "scheduleType": "UNSCHEDULED",
    "instrumentId": "instr_hir1LQlB9mNxr6kgMNYBI",
    "currency": "USD",
    "country": "US",
    "status": "AUTHENTICATION_PENDING",
    "consumer": {
        "country": "US"
    },
    "order": {
        "orderItems": [],
        "shippingAddress": {
            "lastName": "Smith",
            "street": "Hellersbergstraße 14",
            "postalCode": "41460",
            "city": "Berlin",
            "country": "AU"
        },
        "industryData": []
    },
    "authenticationMethods": [
        {
            "details": {
                "requestUrl": "https://redirection-target.ppro.com",
                "requestMethod": "GET"
            },
            "type": "REDIRECT"
        }
    ],
    "authorizations": [
        {
            "id": "authz_ZlJ5cTeMRSNcBk5ccNXbL",
            "amount": 100,
            "status": "AUTHENTICATION_PENDING",
            "createdAt": "2025-08-14T14:49:13.992Z",
            "updatedAt": "2025-08-14T14:49:13.992Z"
        }
    ],
    "captures": [],
    "refunds": [],
    "voids": [],
    "createdAt": "2025-08-14T14:49:13.360Z",
    "updatedAt": "2025-08-14T14:49:13.992Z",
    "_links": {
        "authorizations": {
            "href": "/v1/payment-charges/charge_XysOj6Q0bWKTkqtrvEOg0/authorizations"
        },
        "captures": {
            "href": "/v1/payment-charges/charge_XysOj6Q0bWKTkqtrvEOg0/captures"
        },
        "refunds": {
            "href": "/v1/payment-charges/charge_XysOj6Q0bWKTkqtrvEOg0/refunds"
        },
        "voids": {
            "href": "/v1/payment-charges/charge_XysOj6Q0bWKTkqtrvEOg0/voids"
        }
    }
}

Pick the desired authentication method

REDIRECT

  1. Redirect your consumer to the returned $.authenticationMethods[?(@.type == "REDIRECT")].details.requestUrl.
    For example, with the value of https://redirection-target.ppro.com/ using the returned $.authenticationMethods[?(@.type == "REDIRECT")].details.requestMethod HTTP method.
  2. The consumer will be presented with the reference number and instructions to complete the payment.

Handling the payment result

REDIRECT

  1. After the consumer completes the payment, they are redirected to the returnUrl specified in the payment charge creation request.
  2. Upon redirect back to your site, retrieve the latest payment status by performing a GET /v1/payment-charges/{paymentChargeId}. Use the returned status field to determine and display the final payment outcome to the consumer.
  3. Additionally, webhooks are triggered to notify you of the payment result. This ensures you receive the outcome even if the consumer closes their browser or fails to return to your website.

Payment instrument

A PASSTHROUGH_WALLET instrument will be created for PayPal, with no additional data provided.

Request

GET /v1/payment-instruments/{instrument-id}

Response

{
    "id": "instr_hrp9UWaQN6RgOvaNC1jgK",
    "type": "PASSTHROUGH_WALLET"
}