ECommerceInterface
The main interface to interact with EC
You use the ECommerce set of classes when you want to deal with the underlying EC APIs. With EC, you handle things such as title management and payment information. And you also have the option to handle components such as device information, permitting identification of the console in several ways.
For every page, you'll want to initialize the ECommerceInterface
type.
This special type inherits from ECGenericObject
, an internal C++ type that many others use as a parent. You should only create this specific object type once per page load in JS, as it calls the special function EC_Init
internally.
Inside of EC, there is a JS "test mode" that allows modification of objects that are normally not modifiable via JS. It is not possible to enable it beyond binary patching, or editing memory.
Members
Member Name | Discussion |
---|---|
| Returns the EC library's version number. As of the Wii Shop Channel v21, this is |
| Sets multiple internal EC library values. Known names are:
This calls |
| For the current EC object, get a value for the given |
| Sets the key for |
| Obtains a value by |
| Sets a key by |
| Returns an ECProgress object on the state of the given operation, or the most recent operation. Returns -4007 if no operation is ongoing. |
| Cancels the current operation. |
| Formulates and sends a
|
| Formulates and sends a
|
š Requires HTTPS | Accepts, or rejects, a gifted title.
|
| Performs a request to unregister this console from the server. As part of |
| Deletes the local copy of this ticket, and additionally registers with the server that a ticket has been deleted for the given |
| Sends a list of local tickets on the console, and reads a list of tickets from the server
The parameter |
| Synchronizes values such as ticket sync times and point balances. |
| Requests the console's current points balance. |
| Returns the current cached points balance. |
| |
| Retrieves transaction history from the server, returning an ECTransactionInfos object. |
| |
| |
| |
| Returns -4002 - possibly not implemented, or deprecated? |
| Returns -4002 - possibly not implemented, or deprecated? |
| Makes a request via ECS for the |
| Performs a request to register this console to the server.
It is possible to override sent credentials while registering, as during a re-register configured credentials from |
| |
| Syncs the registration state of this console, seemingly updating token, serial number, friend codes, and other values as appropriate. |
| Requests a challenge from the configured IAS server. |
| Retrieves the returned challenge from the given IAS server. |
| |
| |
| |
| Returns an ECTitleInfo for the specified title ID. |
| Returns an ECTitleInfos for all available titles on the console. |
| Returns an ECTicketInfos for the given title ID. |
| Returns an object you can use to access information with. See its dedicated page, ECDeviceInfo, for more information. |
| Sets endpoints for usage.
CAS is not used within the Wii Shop Channel - only used in other ECDK-utilizing titles, such as for DLC content. |
|
|
| Validates the given Parental Control PIN/password as a long. If this is disabled, it returns |
| Launches the passed title with the given ticket. |
| Requests something, with a callback. **TODO** |
| |
| Creates a new logging buffer. |
| Destroys the present logging buffer. |
| Returns a string with the internal held log from buffer. |
JS Test Mode Operations
These following functions do not function without the JS test mode being enabled via binary patching. They will log such if called. Do not expect them to work.
Member Name | Discussion |
---|---|
| Overrides the configured language for this EC object. |
| Overrides the configured country for this EC object. |
| Overrides the configured region for this EC object. |
| Overrides the configured age for this EC object. |
| Overrides the configured account ID for this EC object.
If a constructor parameter is not specified as a string, it will default to the string literal |
| Deletes a title's contents from the console. |
| Deletes a title's contents and data from the console. |
| Deletes a title's contents, data, and ticket from the console. |
| Encrypts a message with the console's public key, returning a base64-encoded string of the encrypted contents. |
| Unknown. Appears to return zero. |
| Sets an option within EC. Only two options are accepted:
All other options appear to return -4004, or |
Last updated