NAME

Business::CyberSource::Request::Credit - CyberSource Credit Request Object

VERSION

version 0.005004

SYNOPSIS

use Business::CyberSource::Request::Credit;

my $req = Business::CyberSource::Request::Credit
	->with_traits(qw{
		BillingInfo
		CreditCardInfo
	})
	->new({
		reference_code => 'merchant reference code',
		first_name     => 'Caleb',
		last_name      => 'Cushing',
		street         => 'somewhere',
		city           => 'Houston',
		state          => 'TX',
		zip            => '77064',
		country        => 'US',
		email          => 'xenoterracide@gmail.com',
		total          => 5.00,
		currency       => 'USD',
		credit_card    => '4111-1111-1111-1111',
		cc_exp_month   => '09',
		cc_exp_year    => '2025',
	});

DESCRIPTION

This object allows you to create a request for a credit. If you do not want to apply traits (or are using the Request factory) then you can instantiate either the Business::CyberSource::Request::StandAloneCredit or the Business::CyberSource::Request::FollowOnCredit.

inherits

Business::CyberSource::Request

composes

Business::CyberSource::Request::Role::PurchaseInfo
Business::CyberSource::Request::Role::DCC

METHODS

with_traits

For standalone credit requests requests you need to apply BillingInfo and CreditCardInfo roles. This is not necessary for follow on credits. Follow on credits require that you specify a request_id in order to work.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/xenoterracide/Business-CyberSource/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Caleb Cushing <xenoterracide@gmail.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Caleb Cushing.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)