From fbf7fe6694839d8552d49dc874dd017bb38278be Mon Sep 17 00:00:00 2001 From: Juniel Cruz <46545892+cruzjuniel@users.noreply.github.com> Date: Wed, 4 Jan 2023 01:44:30 +0800 Subject: [PATCH] Added setEmail method --- readme.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 766437f..bdaacb9 100644 --- a/readme.md +++ b/readme.md @@ -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` @@ -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 \ No newline at end of file +- 105: Invalid security key