Home > @vsf-enterprise/sap-commerce-webservices-sdk > ExtendedCartsApi > getSopPaymentRequestDetails
ExtendedCartsApi.getSopPaymentRequestDetails() method
Returns the necessary information for creating a subscription that contacts the payment provider directly. This information contains the payment provider URL and a list of parameters that are needed to create the subscription. Get information needed for create subscription
Signature:
getSopPaymentRequestDetails(baseSiteId: string, cartId: string, responseUrl: string, userId: string, extendedMerchantCallback?: boolean, fields?: string, options?: any): Promise<import("axios").AxiosResponse<PaymentRequest>>;
Parameters
Parameter | Type | Description |
---|---|---|
baseSiteId | string | Base site identifier |
cartId | string | Cart identifier: cart code for logged in user, cart guid for anonymous user, 'current' for the last modified cart |
responseUrl | string | The URL that the payment provider uses to return payment information. Possible values for responseUrl include the following: “orderPage_cancelResponseURL”, “orderPage_declineResponseURL”, and “orderPage_receiptResponseURL”. |
userId | string | User identifier or one of the literals : 'current' for currently authenticated user, 'anonymous' for anonymous user |
extendedMerchantCallback | boolean | Define which url should be returned |
fields | string | Response configuration. This is the list of fields that should be returned in the response body. Examples: BASIC, DEFAULT, FULL |
options | any | Override http request option. |
Returns:
Promise<import("axios").AxiosResponse<PaymentRequest>>
Exceptions
{RequiredError} ExtendedCartsApi