Add PayPal payment details

Changed on

Use this method to add PayPal payment details, so that new payment details can be used for recurring payments.

Example use cases include: a customer changes payment method from a card to PayPal, or wants to use a different account in PayPal. For more information, see the docs.

post/connectors/paypal/v1/payment_details/tokens

Request

  • Base URL
    https://mediastoreapi-sandbox.cleeng.com
  • URL
    https://mediastoreapi-sandbox.cleeng.com/connectors/paypal/v1/payment_details/tokens
  • Auth
    API key in header Authorization

Request body

paymentMethodIdinteger required

Publisher PayPal payment method ID

successUrlstring required

URL to redirect the customer to after successful adding payment details

cancelUrlstring required

URL to redirect the customer to after canceled adding payment details

errorUrlstring required

URL to redirect the customer to after an error occurs.

Response

200

Example response

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

Changes