diff --git a/docs/gotcha.txt b/docs/gotcha.txt index d6e67444c..61f54f509 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -69,6 +69,13 @@ save you many hours of grief. will be generated. The upgrade script print all the new codes in the case. The new codes will also be logged in the webgui log file. + * With the new shop system the Payment plugins have been changed too. The default + WebGUI Payment Plugins are automatically migrated for you, but custom plugins + will have to be adapted to use the new WebGUI::Shop API. + + * If you are using the ITransact payment plugin you'll have to change the postback + url. The new value is printed by the upgrade script and can also be found in + the edit screen of the ITransact plugin. 7.5.9 -------------------------------------------------------------------- diff --git a/docs/upgrades/upgrade_7.5.10-7.5.11.pl b/docs/upgrades/upgrade_7.5.10-7.5.11.pl index 2a12bf3f6..beb9c1ae4 100644 --- a/docs/upgrades/upgrade_7.5.10-7.5.11.pl +++ b/docs/upgrades/upgrade_7.5.10-7.5.11.pl @@ -1436,6 +1436,14 @@ sub migratePaymentPlugins { $properties ]) }; + + if ( $namespace eq 'ITransact' && $properties->{ vendorId } ) { + print "\n\t\t!!CAUTION!!: The postback url for ITransact has changed. Please log in to your virtual " + ."terminal and change the postback url to:\n\n\t\t" + .'https://'.$session->config->get("sitename")->[0] + .'/?shop=pay;method=do;do=processRecurringTransactionPostback;paymentGatewayId='.$plugin->getId."\n\t"; + } + } print "Done\n" unless $quiet; diff --git a/lib/WebGUI/Shop/PayDriver.pm b/lib/WebGUI/Shop/PayDriver.pm index d10afee3d..9ee1cec62 100644 --- a/lib/WebGUI/Shop/PayDriver.pm +++ b/lib/WebGUI/Shop/PayDriver.pm @@ -344,23 +344,6 @@ sub getEditForm { my $definition = $self->definition($self->session); my $form = WebGUI::HTMLForm->new($self->session); $form->submit; -# $form->hidden( -# -name => 'shop', -# -value => 'pay', -# ); -# $form->hidden( -# -name => 'method', -# -value => 'do', -# ); -# $form->hidden( -# -name => 'do', -# -value => 'editSave', -# ); -# -# $form->hidden( -# name => 'paymentGatewayId', -# value => $self->getId, -# ); $self->getDoFormTags('editSave', $form); $form->hidden( diff --git a/lib/WebGUI/Shop/PayDriver/ITransact.pm b/lib/WebGUI/Shop/PayDriver/ITransact.pm index 5af074c05..2259a7f11 100644 --- a/lib/WebGUI/Shop/PayDriver/ITransact.pm +++ b/lib/WebGUI/Shop/PayDriver/ITransact.pm @@ -439,6 +439,33 @@ sub getButton { return $payForm; } +#------------------------------------------------------------------- +sub getEditForm { + my $self = shift; + my $session = $self->session; + my $i18n = WebGUI::International->new($session, 'CommercePaymentITransact'); + + my $f = $self->SUPER::getEditForm( @_ ); + $f->readOnly( + -value => '
' + ); + $f->readOnly( + -value => ''.$i18n->get('show terminal').'' + ) if $self->get('vendorId'); + $f->readOnly( + -value => '
' + ); + $f->readOnly( + -value => + $i18n->get('extra info') + .'
' + .'https://'.$session->config->get("sitename")->[0] + .'/?shop=pay;method=do;do=processRecurringTransactionPostback;paymentGatewayId='.$self->getId.'' + ); + + return $f; +} + #------------------------------------------------------------------- =head2 handlesRecurring