[ic] Perl CGI module (was: Safe error in payment module)

Dan Bergan dan at berganconsulting.com
Sun Jan 6 00:02:14 UTC 2013


On Thu, Dec 27, 2012 at 4:12 PM, Grant <emailgrant at gmail.com> wrote:
>>> Thanks, Mike, for confirming that the standard CGI module will not work in IC.
>>>
>>> It appears that Net::Braintree uses CGI on only 2 lines:
>>>
>>> my $query = CGI->new($query_string);
>>> return $query->Vars;
>>
>> Right, and that's in a very simple subroutine.  You can overwrite the
>> entire subroutine easily without having to patch the actual module from
>> interchange.cfg and should be able to solve the issue that way.
>>
>>> So, it looks like I should be able to replace CGI with CGI::Simple and
>>> get the same results.  And, I think I'll politely ask Braintree if
>>> they would consider doing the same replacement in their module.
>>
>> I would recommend replacing
>> Net::Braintree::TransparentRedirect::QueryString::parse() with a sub
>> that calls Vend::Server::parse_post().
>
> Dan, did you get the Braintree module working with Interchange?  I'd
> like to use Braintree with IC too.
>

I have it working on a very basic level, but then we put that project
on hold, and I haven't had a chance to get back to it yet.  Grant,
I'll send you what I have and let you have a go at it, and you are
welcome to release it if you get it ready for production use.

I'll warn you that it is a little rough, and there may be a couple
things that might be specific to our setup.

I'm going out of the country for a bit, so I'll try to get it pulled
together before that, but if I'm not able, then I'll send it out in a
couple of weeks.

Dan



More information about the interchange-users mailing list