line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Business::PayPal::EWP; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
25248
|
use 5.006001; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
37
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
5
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
202
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Exporter; |
8
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( 'all' => [ qw(SignAndEncrypt) ] ); |
9
|
|
|
|
|
|
|
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); |
10
|
|
|
|
|
|
|
our $VERSION='1.03'; |
11
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
require XSLoader; |
14
|
|
|
|
|
|
|
XSLoader::load('Business::PayPal::EWP', $VERSION); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub SignAndEncrypt { |
17
|
1
|
|
|
1
|
0
|
13
|
my $formdata=shift; |
18
|
1
|
|
|
|
|
3
|
my $key=shift; |
19
|
1
|
|
|
|
|
3
|
my $cert=shift; |
20
|
1
|
|
|
|
|
4
|
my $ppcert=shift; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# Reformat |
23
|
|
|
|
|
|
|
#$formdata=~s/,/\n/g; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# Encrypt and sign |
26
|
1
|
|
|
|
|
4348
|
my $retval = Business::PayPal::EWP::SignAndEncryptCImpl($formdata,$key,$cert,$ppcert,0); |
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
|
|
29
|
return $retval; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |