From eeef2fb330df523d071ed7b35c7a4f95c3af0a31 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 19 Dec 2008 14:55:34 +0000 Subject: [PATCH] Fix a bug where the ITransact credentials template was not defined for plugins. This prevented any credit card transactions from taking place. --- docs/changelog/7.x.x.txt | 1 + docs/gotcha.txt | 7 +++++ ...llateral-items_itransact-credentials.wgpkg | Bin 0 -> 1423 bytes docs/upgrades/upgrade_7.6.7-7.6.8.pl | 25 +++++++++++++++++- lib/WebGUI/Shop/PayDriver/ITransact.pm | 9 ++++--- 5 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 docs/upgrades/packages-7.6.8/shopping-cart-collateral-items_itransact-credentials.wgpkg diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index de301f7f3..7ad39926c 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -2,6 +2,7 @@ - Updated captcha images to be more legible. - fixed #9285: modifing template prevents edit of syncontent - fixed #8886: Search button in Asset manager + - fixed #9154: WebGUI Shop - Checkout Caching Problem 7.6.7 - fixed #9263: Thingy possibleValues processing, and List type autodetection. diff --git a/docs/gotcha.txt b/docs/gotcha.txt index eb5222247..d4a125909 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -7,6 +7,13 @@ upgrading from one version to the next, or even between multiple versions. Be sure to heed the warnings contained herein as they will save you many hours of grief. +7.6.8 +-------------------------------------------------------------------- + * Due to an error during the 7.6.6 development cycle, an Itransact template, + for displaying the credentials screen, needs to be reimported. Any changes + that you have made to this module will be lost, so please make a back up + of this template. + 7.6.5 -------------------------------------------------------------------- * The deprecated use of Graphics::Magick has been eliminated. WebGUI uses diff --git a/docs/upgrades/packages-7.6.8/shopping-cart-collateral-items_itransact-credentials.wgpkg b/docs/upgrades/packages-7.6.8/shopping-cart-collateral-items_itransact-credentials.wgpkg new file mode 100644 index 0000000000000000000000000000000000000000..0d23b1c56be0fa953f46bcd5957496b06c13afa6 GIT binary patch literal 1423 zcmV;A1#tQwiwFP!00000|Ls^?PvbZg?(_VLsPi%-QJNIWCDTQMVHhgSFi2cxSKD3W zCT`=!wIkc1lo9`ZkDZH6X;~_Qv=8K=Npmj#&asdEovb%r|MGo*yW4Fv^nGj7+=ETH zd)4JPf*|Ples^=z_Zwai_Oe!P*TEr<~*UQJtBo=bHSO*7}3C`S~Q2jrN z3~ER>T;_MTcwYZUa#j;i@V%wy8}19{KY&^9&dvX3XS>_*Ae*m$z1IA%zdrOjM)>s( zim)ja7if%|Ug-V#*P3~i3Z7!22$uS-QPY|fN%iG6M78@A|nqA!Nt`CWH8Bv5X7#vQ31=`<_3v*BUWzKy^QV+>_0OG zGigkWmTQiAp0JV|9ipj#Lr&L8cUErLh@I ztBtsr=%s>1B|<~$SY;nSLG;>@PC#6Sl8@vhsxmqvn8puv!O%kNInU34s|)r?w57r-U`v~t zv7&qdFHLMAUj=DlQZvwqsM%7KTDS^CtzR=fv)e8OXr!wkGzK+8jCj1fg0yfIfLgzH zd>K>XiCN}Gz8XqnQZvvr;S8T-lOYyMXWZy`%qXpb*x1#K7f%qOOOYDs+9{eH3UUJx z_0Nlg_?g?Nv9B31P=xqD5^PmofZaN&Ie-agD)|GWsT8y1k+1{{qAmnI5`1!s1Q6SK?g?Em zE?R*mG;Bp%_^>&&9?i+{IYDf^i1Zt3s>z2L0}z37MGz9!FMcwREusz)ej?gaGF5pRk@iUF(xeZ9ks`%_c;&; zy_rr6J@?X5JawVuW~P^LOxJUczbNeYPz4pTMQBH`zqY1%XhTlpO1a2To(-Ff$G{0o zGqvV9c%U4p3g~mmfz3=-MehZ)f5E;Hq$k!i}ba?619+77=3C*#I(uoeL+new($session); + my $drivers = $pay->getPaymentGateways($session); + DRIVER: foreach my $driver (@{ $drivers }) { + ##Only work on ITransact drivers + next DRIVER unless $driver->className eq "WebGUI::Shop::PayDriver::ITransact"; + my $properties = $driver->get(); + ##And only ones that don't already have a template set + next DRIVER if $properties->{credentialsTemplateId}; + $properties->{credentialsTemplateId} = 'itransact_credentials1'; + $driver->update($properties); + } + + print "DONE!\n" unless $quiet; +} + #---------------------------------------------------------------------------- # Describe what our function does #sub exampleFunction { diff --git a/lib/WebGUI/Shop/PayDriver/ITransact.pm b/lib/WebGUI/Shop/PayDriver/ITransact.pm index ca048d361..293416fe0 100644 --- a/lib/WebGUI/Shop/PayDriver/ITransact.pm +++ b/lib/WebGUI/Shop/PayDriver/ITransact.pm @@ -368,10 +368,11 @@ sub definition { hoverHelp => $i18n->get('use cvv2 help'), }, credentialsTemplateId => { - fieldType => 'template', - label => $i18n->get('credentials template'), - hoverHelp => $i18n->get('credentials template help'), - namespace => 'Shop/Credentials', + fieldType => 'template', + label => $i18n->get('credentials template'), + hoverHelp => $i18n->get('credentials template help'), + namespace => 'Shop/Credentials', + defaultValue => 'itransact_credentials1', }, emailMessage => { fieldType => 'textarea',