OkHi Documentation
  • 👋Welcome Home
  • OVERVIEW
    • OkHi Product Overview
    • Integration process overview
    • Verification terminology
    • Case Studies
  • Best Practices
    • Integration Best Practices
    • Live Examples
    • Tips for PMs & QA
      • Testing & QA Guide
      • Publishing to app stores
        • Google Play store
        • Apple App Store
    • Tips for designers
  • Code Libraries
    • Developer Quick Start
      • Environment setup
      • Release Notes
    • Android Guide
      • Android Dependencies
      • Migrating to the latest library
    • iOS Guide
    • React Native Guide
      • React Native Dependencies
      • React Native troubleshoot guide
    • Expo React Native Guide
    • Flutter Guide
      • Flutter Dependencies
    • JS library
      • API Reference
      • OkCollect Webhook
      • Changelog
    • WooCommerce Plugin
      • Changelog
  • Verification Status
    • Customer Dashboard
    • Verification Status Updates
      • Webhook v3
        • Webhook Signature Verification Guide
      • Webhook v2
      • Verification Status API
      • Proof Of Address Certificate API
      • FAQs
    • API reference docs
  • Troubleshooting
    • Error Responses
    • Common technical pitfalls
    • How to reduce "Unknowns"
    • FAQs
      • Technical FAQs
      • Compliance FAQs
    • Get in touch
Powered by GitBook
On this page
  • Automatic install
  • Testing
  • Shipping cost calculation

Was this helpful?

  1. Code Libraries

WooCommerce Plugin

Easily add OkHi to your WooCommerce store by installing our plugin

PreviousChangelogNextChangelog

Was this helpful?

Automatic install

Search for OkHi WooCommerce from your Wordpress dashboard under Plugins > Add new. Or download it and install it manually from

  1. Install and activate the plugin

  2. Click on settings:

Add your API keys, logo url and colors:

If you provide a light color as the primary color, the primary will default back to teal color as we haven't yet added support for light colors.

Whenever a user's OkHi address is created or used an SMS is sent to them notifying them of this usage

Once done testing remember to check the production mode box

Testing

Head over to your checkout page, it should have these two states:

  • For a user who is logged in and has a phone number(attached to their billing address)

  • For a user who is logged in and has a phone number attached to their billing address

On your woo-commerce order review page you'd have the address details as follows:

Shipping cost calculation

Every location returned from OkHi will have a as part of the location object which looks like "6GCRPQ7R+6M" you can use these to calculate the delivery cost for your shipments using the woo-commerce shipping zones

plus code
(with the postcode wildcard filter)
here