{
    "mode": "perldoc",
    "parameter": "Business::OnlinePayment::HTTPS",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Business%3A%3AOnlinePayment%3A%3AHTTPS/json",
    "generated": "2026-06-11T02:37:54Z",
    "synopsis": "package Business::OnlinePayment::MyProcessor;\nuse base qw(Business::OnlinePayment::HTTPS);\nsub submit {\nmy $self = shift;\n#...\n# pass a list (order is preserved, if your gateway needs that)\n( $page, $response, %replyheaders )\n= $self->httpsget( field => 'value', ... );\n# or a hashref\nmy %hash = ( field => 'value', ... );\n( $page, $responsecode, %replyheaders )\n= $self->httpsget( \\%hash );\n#...\n}",
    "sections": {
        "NAME": {
            "content": "Business::OnlinePayment::HTTPS - Base class for HTTPS payment APIs\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "package Business::OnlinePayment::MyProcessor;\nuse base qw(Business::OnlinePayment::HTTPS);\n\nsub submit {\nmy $self = shift;\n\n#...\n\n# pass a list (order is preserved, if your gateway needs that)\n( $page, $response, %replyheaders )\n= $self->httpsget( field => 'value', ... );\n\n# or a hashref\nmy %hash = ( field => 'value', ... );\n( $page, $responsecode, %replyheaders )\n= $self->httpsget( \\%hash );\n\n#...\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a base class for HTTPS based gateways, providing useful code for implementors of HTTPS\npayment APIs.\n\nIt depends on Net::HTTPS::Any, which in turn depends on Net::SSLeay or ( Crypt::SSLeay and\nLWP::UserAgent ).\n",
            "subsections": []
        },
        "METHODS": {
            "content": "httpsget [ \\%options ] HASHREF | FIELD => VALUE, ...\nAccepts parameters as either a hashref or a list of fields and values. In the latter case,\nordering is preserved (see Tie::IxHash to do so when passing a hashref).\n\nReturns a list consisting of the page content as a string, the HTTP response code and\nmessage (i.e. \"200 OK\" or \"404 Not Found\"), and a list of key/value pairs representing the\nHTTP response headers.\n\nThe options hashref supports setting headers:\n\n{\nheaders => { 'X-Header1' => 'value', ... },\n}\n\nhttpspost [ \\%options ] SCALAR | HASHREF | FIELD => VALUE, ...\nAccepts form fields and values as either a hashref or a list. In the latter case, ordering\nis preserved (see Tie::IxHash to do so when passing a hashref).\n\nAlso accepts instead a simple scalar containing the raw content.\n\nReturns a list consisting of the page content as a string, the HTTP response code and\nmessage (i.e. \"200 OK\" or \"404 Not Found\"), and a list of key/value pairs representing the\nHTTP response headers.\n\nThe options hashref supports setting headers and Content-Type:\n\n{\nheaders => { 'X-Header1' => 'value', ... },\nContent-Type => 'text/namevalue',\n}\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Business::OnlinePayment, Net::HTTPS::Any\n",
            "subsections": []
        }
    },
    "summary": "Business::OnlinePayment::HTTPS - Base class for HTTPS payment APIs",
    "flags": [],
    "examples": [],
    "see_also": []
}