Product Details (RN SDK)
- Andrey Veprikov
Owned by Andrey Veprikov
Jul 01, 2024
1 min read
Loading data...
Get User's Current Cart
Method Objective
The method allows getting the current profile's cart.
Syntax and parameters
pcsdk.cart().then(success).catch(error)
Name | Type | Requirement | Description |
---|---|---|---|
success | function | required | A callback function, to which the API response will be passed. Response type: object. |
error | function | optionally | A callback function that will be called when an error occurs (any HTTP status code other than 200). |
API response
Name | Type | Description |
---|---|---|
status | string | Contains "success" if the request is successful. |
data | object | Contains the "items" object array, where each object contains the following properties:
|
Example of use
pcsdk.cart() .then((response) => { // success }) .catch((error) => { // error });
Page Navigation
Related Pages
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
Copyright 2018-2024 PersonaClick