SafeShip Pakistan

Description

Cash-on-Delivery is the lifeblood of Pakistani e-commerce — and its biggest risk. Fraudulent orders, serial returners, and fake addresses cost stores thousands every month. SafeShip Pakistan gives you a fighting chance.

SafeShip Pakistan is a community-powered COD fraud prevention service built specifically for Pakistani online stores. Member stores contribute flagged customer records to a shared database, and in return every member can check any incoming COD order against the entire community’s experience — before they pack a single box.

The more stores that join, the smarter the database gets. Every flag you submit protects every other member store.

What you get

  • Risk alerts before dispatch — when a COD order arrives, SafeShip instantly checks the customer’s phone number and delivery address against the shared database and shows you any risk records right on the WooCommerce order page
  • Community risk tags — see why a customer was flagged: fake address, refused delivery, chargeback, repeat offender, and more
  • Flag from the order page — submit a bad customer in seconds, directly from WooCommerce, so other stores are protected
  • Customer Order History (COH) — see each customer’s order badge (New, Returning, Loyal, At Risk), total orders, revenue, and cancellation count — pulled from your own local WooCommerce data, no external calls needed
  • Courier integration — autocomplete courier name, log a tracking ID, and get a direct tracking link — all on the order page
  • TrackKar integration — if TrackKar is active, courier name and tracking ID auto-fill when you flag a customer
  • Works with WooCommerce HPOS — fully compatible with High-Performance Order Storage

Who is this for?

Any WooCommerce store in Pakistan taking COD orders. Whether you’re dispatching 10 orders a day or 10,000, every undelivered parcel is a direct loss. SafeShip turns the collective intelligence of the Pakistani e-commerce community into your first line of defence.

Built by DANGO

SafeShip Pakistan is developed and operated by DANGO (dango.pk), a Pakistani software company. The service is available to verified Pakistani e-commerce businesses. Register your store at safeship.dango.pk.

How it works

  1. A COD order arrives in your WooCommerce store.
  2. SafeShip automatically checks the customer’s phone number and address against the shared database.
  3. If a risk record exists, an alert appears on the order page — before you dispatch.
  4. Flag bad customers in one click to protect every other member store.

Requirements

  • An active SafeShip Pakistan account — apply at safeship.dango.pk
  • A valid API token (generated in your SafeShip dashboard under Manage Users)
  • WooCommerce 5.8 or later
  • PHP 7.4 or later

Note: This plugin connects to the SafeShip Pakistan service operated by DANGO. An active account and API token are required. See the External Services section below for full disclosure on what data is transmitted.

External Services

This plugin connects to the SafeShip Pakistan service operated by DANGO (dango.pk).

  • Service: SafeShip Pakistan
  • Service URL: https://safeship.dango.pk/
  • Operated by: DANGO — https://dango.pk/

What data is transmitted:
When a COD order is placed (or when you manually trigger a check), the customer’s phone number and/or delivery address are sent to the SafeShip Pakistan server to query the shared risk database. When you flag a customer, the customer’s name, phone number, address, and any notes you provide are submitted to the server. No data is transmitted for guest or non-COD orders unless you initiate a manual check.

Terms of Service and Privacy Policy:
Terms of service and privacy policy are provided to registered members during the account application and onboarding process at https://safeship.dango.pk/. For enquiries contact dango.pk.

This plugin will not function without an active SafeShip Pakistan account. All data processing by the SafeShip Pakistan service is governed by the terms agreed to during account registration.

Configuration

After activation and saving your API credentials:

  • Open any WooCommerce order. If the customer has a risk record, you will see an alert box on the order page.
  • To flag a customer, click the Flag customer button on the order page and fill in the details.
  • The Customer Order History (COH) metabox is populated from your local WooCommerce database — no external API call is made for COH data.

Installation

  1. In your WordPress admin, go to Plugins Add New Upload Plugin.
  2. Upload the zip file and click Install Now, then Activate.
  3. Go to WooCommerce Settings Integrations SafeShip Pakistan.
  4. Enter your API URL (provided by your administrator, e.g. https://safeship.dango.pk/api.php).
  5. Enter your API Token (generated in the SafeShip Pakistan dashboard under Manage Users).
  6. Click Save changes. The plugin will verify the connection automatically.

FAQ

Do I need a SafeShip Pakistan account?

Yes. This plugin is a connector for the SafeShip Pakistan service. You need an account and an API token. Apply at safeship.dango.pk.

What data does this plugin send externally?

When a COD order is checked, the customer’s phone number and delivery address are sent to the SafeShip Pakistan server. When you flag a customer, the name, phone, address, and notes you enter are submitted. The Customer Order History (COH) feature stores and reads data only from your local WordPress database — it makes no external calls.

The plugin says “No customer contact data found.”

This means the order does not have a phone number or billing address attached. SafeShip Pakistan needs at least one of these to query the database.

My account shows a billing warning.

Your subscription on the SafeShip Pakistan server may require attention. Click the payment link shown in the warning, or log in to the SafeShip Pakistan dashboard and go to My Billing.

Where do I get an API token?

Log in to your SafeShip Pakistan dashboard. Go to Manage Users, find your store row, and expand it to see the API Token section. Generate a new token if you do not have one.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“SafeShip Pakistan” is open source software. The following people have contributed to this plugin.

Contributors

Translate “SafeShip Pakistan” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.12.0

  • Fixed: TrackKar integration — plugin detection now uses correct constant (DANGO_TRACKKAR_VERSION); courier and tracking ID now correctly auto-fill in the Flag modal
  • Improved: New-order admin email now shows cancelled/failed counts and pending/on-hold counts from Customer Order History alongside the badge
  • Improved: SafeShip section in admin email now shows risk tags, full notes (up to 200 chars), and the flagged phone number
  • Improved: At-Risk and Loyal COH badges in email are now colour-coded for immediate visibility

1.11.0

  • Added: TrackKar integration — courier name and tracking ID auto-populate in the Flag Customer modal when TrackKar plugin is active
  • Added: SafeShip auto risk check now available for the store owner’s own account (previously only configurable for other stores)
  • Fixed: SafeShip result now cached server-side in PHP — repeat order opens show the cached result instantly with no AJAX call
  • Fixed: API error responses no longer cached — a transient failure does not suppress the auto-check on the next order open
  • Fixed: SafeShip result now cached to order meta using save() for full HPOS compatibility
  • Fixed: WP.org PHPCS compliance — late escaping, wp_safe_redirect, wp_strip_all_tags, esc_sql on table names, phpcs:ignore for legitimate plain-text email output

1.9.10

  • Fixed: “Role does not allow flagging” error for Super Admin and Editor roles
  • Fixed: whoami API now correctly returns flagging permissions (can_add_direct, can_request)
  • Cache key bumped to force fresh permission check on first page load after update

1.9.9

  • Fixed: “Unknown column t.is_active” error on Plugins page
  • Fixed: Superadmin accounts with legacy role name can now flag customers from plugin
  • Added: On-demand billing/subscription info in WooCommerce > SafeShip Pakistan settings
  • Updated: Plugin name to SafeShip Pakistan

1.9.8

  • Billing status displayed in plugin — suspended accounts see a payment notification with a direct link
  • whoami API endpoint now returns billing info (plan, next bill date, payment URL)
  • Product name updated to SafeShip Pakistan

1.9.7

  • Risk tags and courier list are now included in the page at load time — no extra server requests when the flag modal opens
  • Tags cached for 24 hours per store, couriers cached for 6 hours per store (WordPress transients)
  • Hardcoded fallback courier list used if server is unreachable

1.9.6

  • Courier list now reflects all couriers added in the server dashboard, not just a hardcoded list

1.9.5

  • No plugin changes in this build

1.9.4

  • Address-matching improvements (Pakistan address engine v2.1)

1.9.3

  • Courier company dropdown now works via WooCommerce AJAX
  • Courier company and tracking ID now correctly saved when flagging via the plugin

1.9.2

  • Probabilistic address-only match: shows matched address vs searched address side by side
  • Name excluded from probabilistic matching (fraudsters change names deliberately)

1.9.1

  • Fixed: courier company and tracking ID were not saved when flagging through the plugin
  • Added staggered weekly self-update check

1.9.0

  • WooCommerce HPOS compatibility
  • Courier autocomplete dropdown
  • Tracking ID field with direct tracking links

1.8.0

  • Initial release