[ic] PaypalExpress error

Dan Bergan dan at berganconsulting.com
Tue Apr 26 22:29:15 UTC 2011


On Tue, Apr 26, 2011 at 4:13 PM, Josh Lavin <josh at perusion.net> wrote:
> 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;
>
Thanks, Josh!

Dan



More information about the interchange-users mailing list