The cards class is the way to store card data of your customers safely to improve the shopping experience. This will allow your customers to complete their purchases much faster and easily, since they will not have to complete their card data again. This class must be used in conjunction with the Customer class.
- Source:
Methods
(static) all(customer_id)
Get all saved cards from a customer Click here for more infos
Parameters:
| Name | Type | Description |
|---|---|---|
customer_id |
string | Customer ID |
- Source:
(static) create(customer_id)
Create a new card for provided Customer ID Click here for more infos
Parameters:
| Name | Type | Description |
|---|---|---|
customer_id |
string | Customer ID |
- Source:
(static) create(customer_id)
Create a new card for provided Customer ID Click here for more infos
Parameters:
| Name | Type | Description |
|---|---|---|
customer_id |
string | Customer ID |
- Source:
(static) delete(customer_id)
Delete card from customer id Click here for more infos
Parameters:
| Name | Type | Description |
|---|---|---|
customer_id |
string | Customer ID |
- Source:
(static) findById(customer_id, id)
Get card from card's id and customer's id
Parameters:
| Name | Type | Description |
|---|---|---|
customer_id |
string | Customer ID |
id |
string | Card ID |
- Source:
(static) get(customer_id, id)
Get card from card's id and customer's id Click here for more infos
Parameters:
| Name | Type | Description |
|---|---|---|
customer_id |
string | Customer ID |
id |
string | Card ID |
- Source:
(static) update(customer_id)
Update card from customer id Click here for more infos
Parameters:
| Name | Type | Description |
|---|---|---|
customer_id |
string | Customer ID |
- Source: