{
    "content": [
        {
            "type": "text",
            "text": "# Business::FraudDetect::preCharge (perldoc)\n\n## NAME\n\nBusiness::FraudDetect::preCharge - backend for Business::FraudDetect (part of Business::OnlinePayment)\n\n## SYNOPSIS\n\nuse 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\n## DESCRIPTION\n\nThis module provides a driver for the preCharge Risk Management Solutions API Version 1.7 (16\nJan 2006).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **CONSTRUCTION**\n- **METHODS**\n- **AUTHORS**\n- **DISCLAIMER**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Business::FraudDetect::preCharge",
        "section": "",
        "mode": "perldoc",
        "summary": "Business::FraudDetect::preCharge - backend for Business::FraudDetect (part of Business::OnlinePayment)",
        "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}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 36,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "CONSTRUCTION",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DISCLAIMER",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}