Business-iDEAL-Adyen
view release on metacpan or search on metacpan
lib/Business/iDEAL/Adyen.pm view on Meta::CPAN
}
sub _sign_req {
my ($self, $args) = @_;
my $plaintext = '';
if($args->{paymentAmount}) {
# Initial signature (the one we _send_)
for(qw/paymentAmount currencyCode shipBeforeDate merchantReference
skinCode merchantAccount sessionValidity shopperEmail
shopperReference allowedMethods blockedMethods/) {
$plaintext .= ( defined $self->{"_$_"} )
? $self->{"_$_"} : ( $args->{$_} || "" );
}
} else {
# Second signature (the one we _receive_)
for(qw/authResult pspReference merchantReference skinCode/) {
$plaintext .= ( defined $self->{"_$_"} )
? $self->{"_$_"} : ( $args->{$_} || "" );
}
}
( run in 0.578 second using v1.01-cache-2.11-cpan-49f99fa48dc )