Skip to content

Commit

Permalink
Added setEmail method
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzjuniel authored Jan 3, 2023
1 parent ae39180 commit fbf7fe6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ Optionally, an email can also be specified:

These methods are available for use after the class `WooCommerceSoftwareAddOn` is initialized.

### `setEmail`

This can be used to replace the email used for the API requests.

| Argument | Description |
|:-------------:|:---------------------------------------------------------------------------------------- |
| email | Email to replace the current default email set during [initialization](#initialization) |

Return: void

### `generateKey`

Expand Down Expand Up @@ -299,4 +308,4 @@ These error codes are found in the plugin source code. For more information abou

### Generate Key Request
- 105: Non matching product_id and secret_key provided
- 105: Invalid security key
- 105: Invalid security key

0 comments on commit fbf7fe6

Please sign in to comment.