{
    "mode": "perldoc",
    "parameter": "Business::FraudDetect::preCharge",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Business%3A%3AFraudDetect%3A%3ApreCharge/json",
    "generated": "2026-06-13T06:58:08Z",
    "synopsis": "use Business::OnlinePayment\nmy $tx = new Business::OnlinePayment ( 'someGateway',\nfrauddetect => 'preCharge',\nmaximumfraudscore => 500,\npreChargeid => '1000000000000001',\npreChargesecurity1 => 'abcdef0123',\npreChargesecurity2 => '3210fedcba',\n);\n$tx->content(\nfirstname => 'Larry Walton',\nlastname => 'Sanders',\nlogin => 'testdrive',\npassword => '',\naction => 'Normal Authorization',\ntype => 'VISA',\nstate => 'MA',\nzip => '02145',\ncountry => 'US',\nphone => '617 555 8900',\nemail => 'lws@sanders.com',\nipaddress => '18.62.0.6',\ncardnumber => '4111111111111111',\nexpiration => '0307',\namount => '25.00',\n);\n$tx->submit();\nif ($tx->issuccess()) {\n# successful charge\nmy $score = $tx->fraudscore;\nmy $id = $tx->fraudtransactionid;\n#returns the preCharge transaction id\n} else {\n# unsucessful\nmy $score = $tx->fraudscore;\n}",
    "sections": {
        "NAME": {
            "content": "Business::FraudDetect::preCharge - backend for Business::FraudDetect (part of\nBusiness::OnlinePayment)\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Business::OnlinePayment\nmy $tx = new Business::OnlinePayment ( 'someGateway',\nfrauddetect => 'preCharge',\nmaximumfraudscore => 500,\npreChargeid => '1000000000000001',\npreChargesecurity1 => 'abcdef0123',\npreChargesecurity2 => '3210fedcba',\n);\n$tx->content(\nfirstname => 'Larry Walton',\nlastname => 'Sanders',\nlogin => 'testdrive',\npassword => '',\naction => 'Normal Authorization',\ntype => 'VISA',\nstate => 'MA',\nzip => '02145',\ncountry => 'US',\nphone => '617 555 8900',\nemail => 'lws@sanders.com',\nipaddress => '18.62.0.6',\ncardnumber => '4111111111111111',\nexpiration => '0307',\namount => '25.00',\n);\n$tx->submit();\nif ($tx->issuccess()) {\n# successful charge\nmy $score = $tx->fraudscore;\nmy $id = $tx->fraudtransactionid;\n#returns the preCharge transaction id\n} else {\n# unsucessful\nmy $score = $tx->fraudscore;\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module provides a driver for the preCharge Risk Management Solutions API Version 1.7 (16\nJan 2006).\n\nSee Business::OnlinePayment and Business::FraudDetect for more information.\n",
            "subsections": []
        },
        "CONSTRUCTION": {
            "content": "Whe constructing the Business::OnlinePayment object, three risk management parameters must be\nincluded for the preCharge object to be properly constructed.\n\n*   prechargeid\n\nThis field is called \"merchantid\" in the preCharge API manual\n\n*   prechargesecurity1\n\nThis field is called \"security1\" in the preCharge API manual\n\n*   prechargesecuirty2\n\nThis field is called \"security2\" in the preCharge API manual\n",
            "subsections": []
        },
        "METHODS": {
            "content": "This module provides no public methods.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Lawrence Statton <lawrence@cluon.com>\n\nJason Hall <jayce@lug-nut.com>\n",
            "subsections": []
        },
        "DISCLAIMER": {
            "content": "THIS SOFTWARE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,\nWITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "http://420.am/business-onlinepayment\n",
            "subsections": []
        }
    },
    "summary": "Business::FraudDetect::preCharge - backend for Business::FraudDetect (part of Business::OnlinePayment)",
    "flags": [],
    "examples": [],
    "see_also": []
}