{
    "content": [
        {
            "type": "text",
            "text": "# Business::OnlinePayment::HTTPS (perldoc)\n\n## NAME\n\nBusiness::OnlinePayment::HTTPS - Base class for HTTPS payment APIs\n\n## SYNOPSIS\n\npackage 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}\n\n## DESCRIPTION\n\nThis is a base class for HTTPS based gateways, providing useful code for implementors of HTTPS\npayment APIs.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Business::OnlinePayment::HTTPS",
        "section": "",
        "mode": "perldoc",
        "summary": "Business::OnlinePayment::HTTPS - Base class for HTTPS payment APIs",
        "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}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 31,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}