Set payment provider

PUT{{API_BASE_URL}}/shop/v1/cart/:cart/payment-providers

The request updates the payment providers for a specific cart.

Request

  • paymentProviderId (string): The ID of the payment provider.

  • successUrl (string): The URL to redirect to upon successful payment.

  • cancelUrl (string): The URL to redirect to if the payment is canceled.

  • errorUrl (string): The URL to redirect to in case of an error.

  • token (string): A token for the payment.

Response

The response includes the following fields:

  • id (string): The ID of the cart.

  • expiryTime (string): The expiry time of the cart.

  • user (object): Details of the user associated with the cart, including:

    • id (string): The ID of the user.

    • isVerified (boolean): The verification status of the user.

    • eMail (string): The email of the user.

The response also includes other details related to the cart, such as event information, items in the cart, totals, payment provider details, buyer's information, and culture.

Authentication#auth

This endpoint does not require authentication.

Query parameters#query

$expandAlloptional

Responses#responses

200OKSet payment provider