X-Git-Url: http://git.freeside.biz/gitweb/?p=Business-OnlinePayment-InternetSecure.git;a=blobdiff_plain;f=InternetSecure.pm;fp=InternetSecure.pm;h=61e210b69a4aa5d1fe0fa0dbcb43ec527388eb76;hp=9bae9e8a80255f15b2d52dab2664c4ac3120d93b;hb=aee9564f2cae2cd7b63aba4d52105dbf24422bae;hpb=601b33ac01d6fbb72208f603d2f1793b3f5c7ff1 diff --git a/InternetSecure.pm b/InternetSecure.pm index 9bae9e8..61e210b 100755 --- a/InternetSecure.pm +++ b/InternetSecure.pm @@ -62,6 +62,18 @@ sub get_fields { return %new; } +# OnlinePayment's remap_fields is buggy in 2.x; this is copied from 3.x +# +sub remap_fields { + my ($self, %map) = @_; + + my %content = $self->content(); + foreach (keys %map) { + $content{$map{$_}} = delete $content{$_}; + } + $self->content(%content); +} + # Combine get_fields and remap_fields for convenience # sub get_remap_fields {