[ic] PaypalExpress error

Josh Lavin josh at perusion.net
Tue Apr 26 22:13:25 UTC 2011


On 04/25/2011 05:48 PM, Dan Bergan wrote:
>
> I just set up PaypaylExpress.pm and I'm testing it out.
>
> On my test site, I used the Paypal Sandbox, and everything worked just fine.
>   I moved all the files over to my live site, and changed from the sanbox to
> the live paypal site, and I'm receiving the following error from
> log_transaction:
>
> /process Safe: 'require' trapped by operation mask at (tag 'perl') line 6.
>>

Yes, it is a UTF-8 issue. Add this to fix it (assuming your route is 
named 'paypalexpress'):

>>        my $out = $Scratch->{transaction_record};
return $out if $Values->{mv_payment_route} eq 'paypalexpress';
>>        $out =~ s/^\s+//;
>>        $out =~ s/^\s+//mg;
>>        $out =~ s/\s+$//mg;
>>        $out =~ s/[\r\n]+/\n/;
>>        $out =~ s/:\n(\d+|yes|succe\w+|fail\w+)\n/: $1\n/ig;
>>        return $out;

-- 
Josh Lavin
Perusion -- Expert Interchange Consulting    http://www.perusion.com/



More information about the interchange-users mailing list