PayPalStd resurrected
This commit is contained in:
parent
9af746c7af
commit
a632380882
8 changed files with 1159 additions and 292 deletions
|
|
@ -11,6 +11,8 @@
|
|||
- fixed #10656: Story: Photo caption doesn't appear
|
||||
- fixed #10658: Delete in Story Archive doesn't delete in Story Topic
|
||||
- fixed #10676: Settings>Account Tab: typos
|
||||
- WebGUI::Shop::PayDriver::PayPal moved to WebGUI::Shop::PayDriver::PayPal::ExpressCheckout.
|
||||
- WebGUI::Shop::PayDriver::PayPal::PayPalStd is back, now functional.
|
||||
|
||||
7.7.15
|
||||
- fixed #10629: WebGUI::ProfileField create new field bug
|
||||
|
|
|
|||
|
|
@ -7,6 +7,16 @@ 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.16
|
||||
--------------------------------------------------------------------
|
||||
* There was some confusion about the state of
|
||||
WebGUI::Shop::PayDriver::PayPal::PayPalStd. While it was in fact
|
||||
dysfunctional, it was using the Paypal Website Standard API, while
|
||||
the new Paypal module was using Express Checkout. Express checkout
|
||||
is only available in the US, UK, and Canada. PayPalStd has
|
||||
been repaired, and the newly written Express Checkout module is
|
||||
available at WebGUI::Shop::PayDriver::PayPal::ExpressCheckout.
|
||||
|
||||
7.7.15
|
||||
--------------------------------------------------------------------
|
||||
* WebGUI::Shop::PayDriver::PayPal::PayPalStd has been replaced by
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ my $quiet; # this line required
|
|||
|
||||
my $session = start(); # this line required
|
||||
replaceUsageOfOldTemplatesAgain($session);
|
||||
updatePayPalDriversAgain($session);
|
||||
|
||||
# upgrade functions go here
|
||||
|
||||
|
|
@ -45,6 +46,24 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub updatePayPalDriversAgain {
|
||||
my $session = shift;
|
||||
my $config = $session->config;
|
||||
print "\tUpdating paypal drivers in config file..." unless $quiet;
|
||||
my $old = 'WebGUI::Shop::PayDriver::PayPal';
|
||||
my @new = qw(
|
||||
WebGUI::Shop::PayDriver::PayPal::PayPalStd
|
||||
WebGUI::Shop::PayDriver::PayPal::ExpressCheckout
|
||||
);
|
||||
$config->deleteFromArray('paymentDrivers', $old);
|
||||
foreach my $n (@new) {
|
||||
$config->deleteFromArray('paymentDrivers', $n);
|
||||
$config->addToArray('paymentDrivers', $n) ;
|
||||
}
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub replaceUsageOfOldTemplatesAgain {
|
||||
my $session = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue