# ECCreditCardEncryptedPayment

If you wish to represent part of a user's credit card number - for example, one already present on the server - you can use ECCreditCardEncryptedPayment. This object only stores the card's last four digits, and represents it as "encrypted" on the server.

For example, assuming an example credit card number ending in `8431`:

```javascript
var payment = new ECCreditCardEncryptedPayment('8431');
```

### Properties

| Property Name            | Discussion                                                                                        |
| ------------------------ | ------------------------------------------------------------------------------------------------- |
| `payment.lastFourDigits` | The last four digits set during instantiation. Can be retrieved, or set to another set of digits. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.oscwii.org/wii-shop-channel/js/ec/payment-objects/eccreditcardencryptedpayment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
