OnlinePayment::HTTPS(3pm) | User Contributed Perl Documentation | OnlinePayment::HTTPS(3pm) |
Business::OnlinePayment::HTTPS - Base class for HTTPS payment APIs
package Business::OnlinePayment::MyProcessor; use base qw(Business::OnlinePayment::HTTPS); sub submit { my $self = shift; #... # pass a list (order is preserved, if your gateway needs that) ( $page, $response, %reply_headers ) = $self->https_get( field => 'value', ... ); # or a hashref my %hash = ( field => 'value', ... ); ( $page, $response_code, %reply_headers ) = $self->https_get( \%hash ); #... }
This is a base class for HTTPS based gateways, providing useful code for implementors of HTTPS payment APIs.
It depends on Net::HTTPS::Any, which in turn depends on Net::SSLeay _or_ ( Crypt::SSLeay and LWP::UserAgent ).
Returns a list consisting of the page content as a string, the HTTP response code and message (i.e. "200 OK" or "404 Not Found"), and a list of key/value pairs representing the HTTP response headers.
The options hashref supports setting headers:
{ headers => { 'X-Header1' => 'value', ... }, }
Also accepts instead a simple scalar containing the raw content.
Returns a list consisting of the page content as a string, the HTTP response code and message (i.e. "200 OK" or "404 Not Found"), and a list of key/value pairs representing the HTTP response headers.
The options hashref supports setting headers and Content-Type:
{ headers => { 'X-Header1' => 'value', ... }, Content-Type => 'text/namevalue', }
Business::OnlinePayment, Net::HTTPS::Any
2023-01-22 | perl v5.36.0 |