Business-CyberSource

 view release on metacpan or  search on metacpan

lib/Business/CyberSource/Factory/Request.pm  view on Meta::CPAN

package Business::CyberSource::Factory::Request;
use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.010008'; # VERSION

use MooseX::AbstractFactory;
implementation_class_via sub { 'Business::CyberSource::Request::' . shift };

__PACKAGE__->meta->make_immutable;
1;
# ABSTRACT: CyberSource Request Factory Module

__END__

=pod

=encoding UTF-8

=head1 NAME

Business::CyberSource::Factory::Request - CyberSource Request Factory Module

=head1 VERSION

version 0.010008

=head1 SYNOPSIS

	use Business::CyberSource::Factory::Request;

	my $factory = Business::CyberSource::Factory::Request->new;

	my $request_obj = $factory->create(
		'Authorization', {
			reference_code => '42',
			bill_to => {
				first_name  => 'Caleb',
				last_name   => 'Cushing',
				street      => '100 somewhere st',
				city        => 'Houston',
				state       => 'TX',
				postal_code => '77064',
				country     => 'US',
				email       => 'xenoterracide@gmail.com',
			},
			purchase_totals => {
				currency => 'USD',
				total    => 5.00,
				discount => 0.10, # optional
				duty     => 0.03, # optional
			},
			card => {
				account_number => '4111111111111111',
				expiration => {
					month => 9,
					year  => 2025,
				},
			},
		}
	);

=head1 DESCRIPTION



( run in 0.886 second using v1.01-cache-2.11-cpan-39bf76dae61 )