NAME

Business::OnlinePayment::CyberSource::Role::InputHandling - Input handling convenience methods for Business::OnlinePayment::CyberSource

VERSION

version 3.000016

SYNOPSIS

  package Thing;

  use Moose;

  with 'Business::OnlinePayment::CyberSource::Role::InputHandling';

  sub blah {
  	my ( $self, @args ) = @_;
		my $data = $self->_parse_input( @args );

  	$data->{color} = 'red' unless $data->{color};
  }
	 1;

  my $thing = Thing->new();

  $thing->blah( color => 'blue' );
  $thing->blah( { color => 'blue' } );

DESCRIPTION

This role provides consumers with convenience methods for handling input.

METHODS

_parse_input

Converts input into a hashref

Accepts: A hash or reference to a hash Returns: A reference to the supplied hash

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/xenoterracide/business-onlinepayment-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.

AUTHORS

  • Jad Wauthier <Jadrien dot Wauthier at GMail dot com>

  • Caleb Cushing <xenoterracide@gmail.com>

  • Peter Bowen <peter@bowenfamily.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by HostGator.com.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.