v1

latestOpenAPI 3.1.02026-07-241080412.6 KB

Payment with PayPal Express Checkout

Use /connectors/paypal/v1/tokens endpoint to perform payment with Paypal Express Checkout. Payment is executed on PayPal site and after success / error / cancel customer is redirected to predefined routes.

post/connectors/paypal/v1/tokens

Request body

orderIdinteger required

ID of Cleeng order (with PayPal paymentMethodId)

successUrlstring required

URL to redirect the customer to after successful purchase

cancelUrlstring required

URL to redirect the customer to after cancelled purchase

errorUrlstring required

URL to redirect the customer to after an error occurs. A query param 'message' will be added to this route

captchaValuestring

To integrate Google reCAPTCHA go HERE

Response

200

Example response

{
  "responseData": {
    "redirectUrl": "https://www.sandbox.paypal.com/checkoutnow?useraction=commit&token=<unique-transaction-token>"
  }
}