Gateway Fee Exporter Documentation

    Technical Specs

    Documentation for WebMe Gateway Fee Exporter.

    Platform

    • Type: WordPress plugin
    • Category: WooCommerce
    • WordPress: 6.5+
    • PHP: 7.4+
    • WooCommerce: 8.0+
    • Version: 0.1.0

    Storage

    • No custom tables
    • Stores presets in option webme_gfe_presets

    Entry points

    • plugins_loaded
    • admin_menu
    • admin_post_webme_gfe_download
    • admin_post_webme_gfe_manifest
    • admin_post_webme_gfe_save_preset
    • admin_post_webme_gfe_delete_preset

    Security controls

    • capability checks with manage_woocommerce
    • nonce validation for all state-changing/download actions
    • request sanitization on $_GET and $_POST
    • escaped admin output
    • CSV formula hardening on string fields
    • fee/net amount validation before export

    Export schema version

    • row schema: 2

    Supported metadata families

    Stripe-family fee keys:

    • _stripe_fee
    • _wc_stripe_fee
    • _stripe_intent_fee
    • _wcpay_stripe_fee
    • _wcpay_processing_fee

    PayPal-family fee keys:

    • _paypal_fee
    • _ppcp_paypal_fee

    Resolver statuses

    • resolved
    • missing_fee
    • missing_transaction_id
    • ambiguous
    • invalid_amount
    • unsupported_gateway

    Filters

    • order created date from/to
    • exact payment gateway slug
    • WooCommerce order status CSV
    • resolver status

    Paid date is exported but is not a launch filter.

    Diagnostics

    • Static provider coverage lists supported resolver key patterns.
    • Dynamic Gateway Coverage Report groups orders by payment method/title.
    • Candidate private fee/net-like meta keys are counted by key name only.
    • Arbitrary order meta values are not exported in diagnostics.

    Output formats

    • CSV download
    • manifest JSON download

    Non-goals in current code

    • remote API fetches
    • credential storage
    • payout reconciliation
    • accounting sync
    • background processing
    • custom analytics store