Changeset 2792587
- Timestamp:
- 09/30/2022 04:29:18 PM (3 years ago)
- Location:
- trust-swiftly-verification/trunk
- Files:
-
- 4 edited
-
readme.txt (modified) (5 diffs)
-
src/TrustVerifyPlugin.php (modified) (1 diff)
-
src/WooCommerce/Verification.php (modified) (2 diffs)
-
trustswiftly-verification.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trust-swiftly-verification/trunk/readme.txt
r2791945 r2792587 5 5 Tested up to: 6.0 6 6 Requires PHP: 7.3 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 License: GPLv2 or later 9 9 … … 11 11 12 12 == Description == 13 13 14 Trust Swiftly provides flexible and accurate identity verifications with over 15 different verification methods. Trust Swiftly is easily customizable through our dashboard and configurable with Woocommerce to optimize your customer\'s experience with frictionless verifications. 14 15 … … 21 22 22 23 == Installation == 23 A Trust Swiftly account. Sign up here: [https://app.trustswiftly.com/create](https://app.trustswiftly.com/create)24 24 25 Setup in Trust Swiftly 25 **Prerequisite:** A Trust Swiftly account. Sign up for free [https://app.trustswiftly.com/create](https://app.trustswiftly.com/create) 26 27 = Setup in Trust Swiftly and WP Plugin = 26 28 27 29 To configure the integration with Trust Swiftly, follow the steps below. 28 30 29 1. Log in to the Trust Swiftly dashboard. Your base url is your branded site name you login i.e. https://EXAMPLE.trustswiftly.com 30 2. Create a Template in the Trust Swiftly dashboard to configure the user verification steps. Read the documentation on managing templates for more information. [How to create templates?](https://support.trustswiftly.com/how-to-manage-templates.html) 31 3. Navigate to the Developer > API page to create an API key. i.e. https://EXAMPLE.trustswiftly.com/settings/developer 32 4. (Optional) Navigate to the Developer > Webhooks page to create an IPN which notifies your store about completed verifications incase of redirect problems. Click add Webhook at enter the IPN listed on your TS settings page. i.e. https://example.com/wp-json/ts/v1/ipn Afterwards make sure to copy the secret from the button to enter later. 33 5. You should now have the API Key, Secret, and Embed Key then update in the Wordpress settings of Trust Swiftly. The webhoook secret should also be added if that featured is used. 34 6. Click Save to test the API connection. Once it is confirmed you can then select the remaining settings like the Verification template. 31 1. Log in to the Trust Swiftly dashboard. Your **base url** is your branded site name you login i.e. `https://EXAMPLE.trustswiftly.com` 32 2. **Create a Template** in the Trust Swiftly dashboard to configure the user verification steps. Read the documentation on managing templates for more information. [How to create templates?](https://support.trustswiftly.com/how-to-manage-templates.html) 33 3. Navigate to the **Developer > API** page to create an API key. i.e. `https://EXAMPLE.trustswiftly.com/settings/developer` 34 4. (Optional) Navigate to the **Developer > Webhooks** page to create an IPN which notifies your store about completed verifications incase of redirect problems. Click add Webhook at enter the IPN listed on your TS settings page. i.e. `https://example.com/wp-json/ts/v1/ipn` Afterwards make sure to copy the secret from the button to input later. 35 5. Update in your Trust Swiftly dashboard settings the **Completion Redirect URL**, Go to `https://EXAMPLE.trustswiftly.com/settings` copy and paste the url given on the Wordpress TS settings page and update. i.e. `https://example.com/wp-json/ts/v1/return/?order_id={order_id}` 36 6. You should now have the **API Key, Secret, and Embed Key** then update in the Wordpress settings of Trust Swiftly. The webhoook secret should also be added if that feature is enabled. 37 7. Click Save to test the API connection. Once it is confirmed you can then select the remaining settings like the Verification template or trigger location of the verification (Before or after checkout). 35 38 36 39 == Frequently Asked Questions == 40 37 41 = How much does this cost? 38 42 … … 44 48 45 49 See [https://trustswiftly.com/features/](https://trustswiftly.com/features/) for more info. 50 51 = Need help getting started or changes? 52 53 We are always looking to improve our plugin and any feedback is appreciated. Contact us at [email protected] for support or feedback. Our support site also has useful tips on preventing fraud [https://support.trustswiftly.com/](https://support.trustswiftly.com/) 46 54 47 55 == Changelog == … … 62 70 = 1.0.4 = 63 71 * Version fix 72 73 = 1.0.5 = 74 * Fix icons loading -
trust-swiftly-verification/trunk/src/TrustVerifyPlugin.php
r2769563 r2792587 120 120 wp_enqueue_style('ts-bootstrap', 'https://cdn.trustswiftly.com/assets/css/embedded_bootstrap.css'); 121 121 wp_enqueue_style('ts-trustverify-css', 'https://cdn.trustswiftly.com/assets/css/trust-verify.css'); 122 wp_enqueue_style('ts-trustverify-css', 'https://cdn.trustswiftly.com/assets/css/modal_fontawesome.css'); 122 123 } 123 124 -
trust-swiftly-verification/trunk/src/WooCommerce/Verification.php
r2769538 r2792587 53 53 { 54 54 if (! is_user_logged_in()) { 55 return $errors; 56 } 57 $verifyAfterCheckout = ts_get_option('verify_on', static::VERIFY_BEFORE_CHECKOUT) == static::VERIFY_AFTER_CHECKOUT; 58 if ($verifyAfterCheckout){ 55 59 return $errors; 56 60 } … … 224 228 public function getModalHtml() 225 229 { 226 return '<div id="trustVerify" class="bg-light p-5 rounded ts_emb_verify" ></div>';230 return '<div id="trustVerify" class="bg-light p-5 rounded ts_emb_verify" style="margin-top: 30px"></div>'; 227 231 } 228 232 -
trust-swiftly-verification/trunk/trustswiftly-verification.php
r2791945 r2792587 9 9 * Author: Trust Swiftly 10 10 * Author URI: https://www.trustswiftly.com 11 * Version: 1.0. 411 * Version: 1.0.5 12 12 * Text Domain: Trust Swiftly Verification 13 13 */
Note: See TracChangeset
for help on using the changeset viewer.