The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

VERSION

version 0.010008

SYNOPSIS

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

	my $req = Business::CyberSource::Request::Credit->new({
			reference_code => 'merchant reference code',
			bill_to => {
				first_name  => 'Caleb',
				last_name   => 'Cushing',
				street      => 'somewhere',
				city        => 'Houston',
				state       => 'TX',
				postal_code => '77064',
				country     => 'US',
				email       => 'xenoterracide@gmail.com',
			},
			purchase_totals => {
				total    => 5.00,
				discount => 0.50, # optional
				duty     => 0.01, # optional
				currency => 'USD',
			},
			card => {
				account_number => '4111-1111-1111-1111',
				expiration => {
					month => '09',
					year => '2025',
				},
			},
            invoice_header => {
                purchaser_vat_registration_number => 'ATU99999999',
                user_po => '123456',
                vat_invoice_reference_number => '1234',
            },
            other_tax => {
                alternate_tax_amount => '0.10',
                alternate_tax_indicator => 1,
                vat_tax_amount => '0.10',
                vat_tax_rate => '0.10',
            },
		});

DESCRIPTION

This object allows you to create a request for a credit. You can use Business::CyberSource::Request::StandAloneCredit or the Business::CyberSource::Request::FollowOnCredit if you want your objects to be checked for all required fields.

EXTENDS

Business::CyberSource::Request

WITH

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

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/hostgator/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) 2017 by Caleb Cushing <xenoterracide@gmail.com>.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)