getting rid of even more stuf i forgot of in the commerce system

This commit is contained in:
JT Smith 2008-05-28 18:57:25 +00:00
parent 4712ba2823
commit 4cfafd7c23
13 changed files with 16 additions and 1012 deletions

View file

@ -1013,6 +1013,11 @@ sub removeOldCommerceCode {
my $session = shift;
print "\tRemoving old commerce code.\n" unless ($quiet);
my $setting = $session->setting;
$setting->remove('groupIdAdminCommerce');
$setting->remove('groupIdAdminProductManager');
$setting->remove('groupIdAdminSubscription');
$setting->remove('groupIdAdminTransactionLog');
my $config = $session->config;
unlink '../../lib/WebGUI/Asset/Wobject/Product.pm';
@ -1020,7 +1025,17 @@ sub removeOldCommerceCode {
unlink '../../lib/WebGUI/Commerce.pm';
unlink '../../lib/WebGUI/Product.pm';
unlink '../../lib/WebGUI/Subscription.pm';
unlink '../../lib/WebGUI/Operation/TransactionLog.pm';
unlink '../../lib/WebGUI/i18n/English/CommercePaymentCash.pm';
unlink '../../lib/WebGUI/i18n/English/CommercePaymentCheck.pm';
unlink '../../lib/WebGUI/i18n/English/CommercePaymentITransact.pm';
unlink '../../lib/WebGUI/i18n/English/CommerceShippingByPrice.pm';
unlink '../../lib/WebGUI/i18n/English/CommerceShippingByWeight.pm';
unlink '../../lib/WebGUI/i18n/English/CommerceShippingPerTransaction.pm';
unlink '../../lib/WebGUI/i18n/English/Workflow_Activity_CacheEMSPrereqs.pm';
unlink '../../lib/WebGUI/i18n/English/Workflow_Activity_ProcessRecurringPayments.pm';
unlink '../../lib/WebGUI/Workflow/Activity/ProcessRecurringPayments.pm';
$session->db->write("delete from WorkflowActivity where className='WebGUI::Workflow::Activity::ProcessRecurringPayments'");
unlink '../../lib/WebGUI/Macro/Product.pm';
unlink '../../lib/WebGUI/Help/Macro_Product.pm';
unlink '../../lib/WebGUI/i18n/English/Macro_Product.pm';

View file

@ -470,7 +470,6 @@ sub definition {
groupIdAdminActiveSessions
groupIdAdminAdSpace
groupIdAdminCache
groupIdAdminCommerce
groupIdAdminCron
groupIdAdminDatabaseLink
groupIdAdminGraphics
@ -479,13 +478,10 @@ sub definition {
groupIdAdminHelp
groupIdAdminLDAPLink
groupIdAdminLoginHistory
groupIdAdminProductManager
groupIdAdminProfileSettings
groupIdAdminReplacements
groupIdAdminSpectre
groupIdAdminStatistics
groupIdAdminSubscription
groupIdAdminTransactionLog
groupIdAdminUser
groupIdAdminUserAdd
groupIdAdminVersionTag

View file

@ -1,146 +0,0 @@
package WebGUI::Operation::TransactionLog;
use strict;
use WebGUI::Commerce::Transaction;
use WebGUI::Asset::Template;
use WebGUI::Operation;
use WebGUI::Form;
use WebGUI::Paginator;
=head1 NAME
Package WebGUI::Operation::TransactionLog
=head1 DESCRIPTION
Operations for dealing with transactions from the WebGUI Commerce System.
=cut
#----------------------------------------------------------------------------
=head2 canView ( session [, user] )
Returns true if the user can administrate this operation. user defaults to
the current user.
=cut
sub canView {
my $session = shift;
my $user = shift || $session->user;
return $user->isInGroup( $session->setting->get("groupIdAdminTransactionLog") );
}
#-------------------------------------------------------------------
=head2 www_viewPurchaseHistory ( errorMessage )
Templated output of all Commerce transactions by this user. Allows the user to cancel any recurring
transactions.
=head3 errorMessage
This error message will be added to the template variables.
=cut
sub www_viewPurchaseHistory {
my $session = shift;
my (@historyLoop, %var, %properties);
$var{errorMessage} = shift;
my $p = WebGUI::Paginator->new($session, $session->url->page("op=viewPurchaseHistory"));
my @history = reverse @{WebGUI::Commerce::Transaction->new($session)->transactionsByUser($session->user->userId)};
$p->setDataByArrayRef(\@history);
$p->appendTemplateVars(\%var);
for my $transaction (@{$p->getPageData}) {
%properties = %{$transaction->get};
$properties{initDate} = $session->datetime->epochToHuman($properties{initDate});
$properties{completionDate} = $session->datetime->epochToHuman($properties{completionDate})
if ($properties{completionDate});
# Format dollar amounts
$properties{amount} = sprintf("%.2f",$properties{amount});
$properties{shippingCost} = sprintf("%.2f",$properties{shippingCost});
my $items = $transaction->getItems;
for my $item (@$items) {
$item->{amount} = sprintf("%.2f",$item->{amount});
}
push(@historyLoop, {
(%properties),
itemLoop => $items,
cancelUrl => $session->url->page('op=cancelRecurringTransaction;tid='.$properties{transactionId}),
canCancel => ($properties{recurring} && ($properties{status} eq 'Completed')),
});
}
$var{purchaseHistoryLoop} = \@historyLoop;
my $templateId = $session->setting->get('commercePurchaseHistoryTemplateId');
return $session->style->userStyle(WebGUI::Asset::Template->new($session,$templateId)->process(\%var));
}
#-------------------------------------------------------------------
=head2 www_cancelRecurringTransaction ( )
Cancels a transaction if it is recurring. If not, an error message is returned.
The transaction to cancel is passed in via a form field entry in the session variable,
$session->form->process("tid").
=cut
sub www_cancelRecurringTransaction {
my $session = shift;
my ($transaction, $error, $message);
my $i18n = WebGUI::International->new($session, "TransactionLog");
$transaction = WebGUI::Commerce::Transaction->new($session, $session->form->process("tid"));
if ($transaction->isRecurring) {
$error = $transaction->cancelTransaction;
$message = $i18n->get('cancel error').$error if ($error);
} else {
$message = $i18n->get('cannot cancel');
}
return www_viewPurchaseHistory($session, $message);
}
#-------------------------------------------------------------------
=head2 www_deleteTransaction ( )
Deletes a transaction, as specified by $session->form->process("tid").
Afterward, it calls www_listTransactions
=cut
sub www_deleteTransaction {
my $session = shift;
my $transactionId;
return $session->privilege->insufficient unless canView($session);
$transactionId = $session->form->process("tid");
WebGUI::Commerce::Transaction->new($session, $transactionId)->delete;
return WebGUI::Operation::execute($session,'listTransactions');
}
#-------------------------------------------------------------------
sub www_deleteTransactionItem {
my $session = shift;
return $session->privilege->insufficient unless canView($session);
WebGUI::Commerce::Transaction->new($session, $session->form->process("tid"))->deleteItem($session->form->process("iid"), $session->form->process("itype"));
return WebGUI::Operation::execute($session,'listTransactions');
}
1;

View file

@ -1,143 +0,0 @@
package WebGUI::Workflow::Activity::ProcessRecurringPayments;
=head1 LEGAL
-------------------------------------------------------------------
WebGUI is Copyright 2001-2008 Plain Black Corporation.
-------------------------------------------------------------------
Please read the legal notices (docs/legal.txt) and the license
(docs/license.txt) that came with this distribution before using
this software.
-------------------------------------------------------------------
http://www.plainblack.com info@plainblack.com
-------------------------------------------------------------------
=cut
use strict;
use base 'WebGUI::Workflow::Activity';
use WebGUI::Commerce::Payment;
use WebGUI::Commerce::Transaction;
use WebGUI::Commerce::Item;
use WebGUI::Mail::Send;
=head1 NAME
Package WebGUI::Workflow::Activity::ProcessRecurringPayments
=head1 DESCRIPTION
Deals with recurring payments from the subscription system.
=head1 SYNOPSIS
See WebGUI::Workflow::Activity for details on how to use any activity.
=head1 METHODS
These methods are available from this class:
=cut
#-------------------------------------------------------------------
=head2 definition ( session, definition )
See WebGUI::Workflow::Activity::defintion() for details.
=cut
sub definition {
my $class = shift;
my $session = shift;
my $definition = shift;
my $i18n = WebGUI::International->new($session, "Commerce");
push(@{$definition}, {
name=>$i18n->get("process recurring payments"),
properties=> {}
});
return $class->SUPER::definition($session,$definition);
}
#-------------------------------------------------------------------
sub getDuration {
my $self = shift;
my $duration = shift;
return $self->session->datetime->addToDate(0,0,0,7) if $duration eq 'Weekly';
return $self->session->datetime->addToDate(0,0,0,14) if $duration eq 'BiWeekly';
return $self->session->datetime->addToDate(0,0,0,28) if $duration eq 'FourWeekly';
return $self->session->datetime->addToDate(0,0,1,0) if $duration eq 'Monthly';
return $self->session->datetime->addToDate(0,0,3,0) if $duration eq 'Quarterly';
return $self->session->datetime->addToDate(0,0,6,0) if $duration eq 'HalfYearly';
return $self->session->datetime->addToDate(0,1,0,0) if $duration eq 'Yearly';
}
#-------------------------------------------------------------------
=head2 execute ( )
See WebGUI::Workflow::Activity::execute() for details.
=cut
sub execute {
my $self = shift;
my @recurringTransactions = $self->session->db->buildArray("select transactionId from transaction where recurring=1 and status='Completed'");
my (@unprocessed, @ok, @failed, @fatal);
foreach (@recurringTransactions) {
my $transaction = WebGUI::Commerce::Transaction->new($self->session,$_);
my $itemProperties = $transaction->getItems->[0];
my $item = WebGUI::Commerce::Item->new($self->session, $itemProperties->{itemId}, $itemProperties->{itemType});
my $time = time;
$time -= $transaction->get('initDate');
my $itemDuration = $self->getDuration($item->duration);
unless ($itemDuration) {
push(@fatal, $itemProperties->{itemId}." has no duration");
next;
}
my $term = int($time / $itemDuration) + 1;
if ($term > $transaction->lastPayedTerm) {
my $payment = WebGUI::Commerce::Payment->load($self->session, $transaction->gateway);
$transaction->gatewayId;
my $status = $payment->getRecurringPaymentStatus($transaction->gatewayId, $term);
my $output = $item->name." (tid: ".$transaction->get('transactionId').") ";
$output .= " by user ".WebGUI::User->new($self->session, $transaction->get("userId"))->username." (uid: ".$transaction->get("userId").") ";
$output .= " for term ". sprintf('% 6d', $term)." ";
$output .= " -> ".$transaction->gateway.": (".$transaction->gatewayId.")\t";
unless ($payment->resultCode) {
unless (defined $status) {
$output .= "NOT PROCESSED YET";
push (@unprocessed, $output);
} elsif ($status->{resultCode} eq '0') {
$output .= "OK";
push (@ok, $output);
$item->handler($transaction->get("userId")) unless ($term == 1);
$transaction->lastPayedTerm($term);
} else {
$output .= "PAYMENT FAILED: ".$status->{resultCode};
push (@failed, $output);
}
} else {
$output .= "FATAL ERROR: ".$payment->resultMessage." (".$payment->errorCode.")";
}
}
}
my $message = "FAILED PAYMENTS:\n-----------------------------\n".join("\n", @failed)."\n\n\n";
$message .= "UNPROCESSED PAYMENTS:\n-----------------------------\n".join("\n", @unprocessed)."\n\n\n";
$message .= "FATAL ERRORS:\n-----------------------------\n".join("\n",@fatal)."\n\n\n";
$message .= "SUCCESFUL PAYMENTS:\n-----------------------------\n".join("\n", @ok)."\n\n\n";
my $mail = WebGUI::Mail::Send->create($self->session, {
to=>$self->session->setting->get("commerceSendDailyReportTo"),
subject=>'Daily recurring payments report'
});
$mail->addText($message);
$mail->addFooter;
return $mail->send ? $self->COMPLETE : $self->ERROR;
}
1;

View file

@ -1,164 +0,0 @@
package WebGUI::i18n::English::CommercePaymentCash;
use strict;
our $I18N = {
'label' => {
message => q|Cash|,
lastUpdated => 0,
context => q|Default Cash payment gateway label|
},
'phone' => {
message => q|Telephone Number|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'country' => {
message => q|Country|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'firstName' => {
message => q|First name|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'lastName' => {
message => q|Last name|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'address' => {
message => q|Address|,
lastUpdated => 1101772170,
context => q|Form label in the checkout form of the iTransact module.|
},
'city' => {
message => q|City|,
lastUpdated => 1101772171,
context => q|Form label in the checkout form of the iTransact module.|
},
'state' => {
message => q|State|,
lastUpdated => 1101772173,
context => q|Form label in the checkout form of the iTransact module.|
},
'zipcode' => {
message => q|Zipcode|,
lastUpdated => 1101772174,
context => q|Form label in the checkout form of the iTransact module.|
},
'email' => {
message => q|Email|,
lastUpdated => 1101772176,
context => q|Form label in the checkout form of the iTransact module.|
},
'cardNumber' => {
message => q|Credit card number|,
lastUpdated => 1101772177,
context => q|Form label in the checkout form of the iTransact module.|
},
'expiration date' => {
message => q|Expiration date|,
lastUpdated => 1101772180,
context => q|Form label in the checkout form of the iTransact module.|
},
'cvv2' => {
message => q|Verification number (ie. CVV2)|,
lastUpdated => 1101772182,
context => q|Form label in the checkout form of the iTransact module.|
},
'vendorId' => {
message => q|Username (Vendor ID)|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'use cvv2' => {
message => q|Use CVV2|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'emailMessage' => {
message => q|Email message|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'password' => {
message => q|Password|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'module name' => {
message => q|Cash|,
lastUpdated => 0,
context => q|The displayed name of the payment module.|
},
'invalid firstName' => {
message => q|You have to enter a valid first name.|,
lastUpdated => 0,
context => q|An error indicating that an invalid first name has been entered.|
},
'invalid lastName' => {
message => q|You have to enter a valid last name.|,
lastUpdated => 0,
context => q|An error indicating that an invalid last name has been entered.|
},
'invalid address' => {
message => q|You have to enter a valid address.|,
lastUpdated => 0,
context => q|An error indicating that an invalid street has been entered.|
},
'invalid city' => {
message => q|You have to enter a valid city.|,
lastUpdated => 0,
context => q|An error indicating that an invalid city has been entered.|
},
'invalid zip' => {
message => q|You have to enter a valid zipcode.|,
lastUpdated => 0,
context => q|An error indicating that an invalid zipcode has been entered.|
},
'invalid email' => {
message => q|You have to enter a valid email address.|,
lastUpdated => 0,
context => q|An error indicating that an invalid email address has been entered.|
},
'no description' => {
message => q|No description|,
lastUpdated => 0,
context => q|The default description of purchase of users.|
},
'cash' => {
message => q|Cash|,
lastUpdated => 0,
context => q|Option to use physical money as a form of payment.|
},
'check' => {
message => q|Check|,
lastUpdated => 0,
context => q|Option to use a check as a form of payment.|
},
'other' => {
message => q|Other|,
lastUpdated => 0,
context => q|Option to use a something aside from cash or check as a payment.|
},
'payment method' => {
message => q|Payment Method|,
lastUpdated => 0,
context => q|Label for selecting how to pay for this purchase.|
},
'complete transaction' => {
message => q|Complete Transaction on Submit?|,
lastUpdated => 0,
},
'complete transaction description' => {
message => q|When set to 'yes', the transaction is completed when the user submits payment details. When set to 'no', the transaction is set to pending and must be manually set to complete. This may be useful if you wish to allow site visitors to select the Cash Payment method, but would like to wait for payment to clear before completing the transaction.|,
lastUpdated => 0,
},
};
1;

View file

@ -1,164 +0,0 @@
package WebGUI::i18n::English::CommercePaymentCheck;
use strict;
our $I18N = {
'label' => {
message => q|Check|,
lastUpdated => 0,
context => q|Default Check payment gateway label|
},
'phone' => {
message => q|Telephone Number|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'country' => {
message => q|Country|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'firstName' => {
message => q|First name|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'lastName' => {
message => q|Last name|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'address' => {
message => q|Address|,
lastUpdated => 1101772170,
context => q|Form label in the checkout form of the iTransact module.|
},
'city' => {
message => q|City|,
lastUpdated => 1101772171,
context => q|Form label in the checkout form of the iTransact module.|
},
'state' => {
message => q|State|,
lastUpdated => 1101772173,
context => q|Form label in the checkout form of the iTransact module.|
},
'zipcode' => {
message => q|Zipcode|,
lastUpdated => 1101772174,
context => q|Form label in the checkout form of the iTransact module.|
},
'email' => {
message => q|Email|,
lastUpdated => 1101772176,
context => q|Form label in the checkout form of the iTransact module.|
},
'cardNumber' => {
message => q|Credit card number|,
lastUpdated => 1101772177,
context => q|Form label in the checkout form of the iTransact module.|
},
'expiration date' => {
message => q|Expiration date|,
lastUpdated => 1101772180,
context => q|Form label in the checkout form of the iTransact module.|
},
'cvv2' => {
message => q|Verification number (ie. CVV2)|,
lastUpdated => 1101772182,
context => q|Form label in the checkout form of the iTransact module.|
},
'vendorId' => {
message => q|Username (Vendor ID)|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'use cvv2' => {
message => q|Use CVV2|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'emailMessage' => {
message => q|Email message|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'password' => {
message => q|Password|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'module name' => {
message => q|Cash|,
lastUpdated => 0,
context => q|The displayed name of the payment module.|
},
'invalid firstName' => {
message => q|You have to enter a valid first name.|,
lastUpdated => 0,
context => q|An error indicating that an invalid first name has been entered.|
},
'invalid lastName' => {
message => q|You have to enter a valid last name.|,
lastUpdated => 0,
context => q|An error indicating that an invalid last name has been entered.|
},
'invalid address' => {
message => q|You have to enter a valid address.|,
lastUpdated => 0,
context => q|An error indicating that an invalid street has been entered.|
},
'invalid city' => {
message => q|You have to enter a valid city.|,
lastUpdated => 0,
context => q|An error indicating that an invalid city has been entered.|
},
'invalid zip' => {
message => q|You have to enter a valid zipcode.|,
lastUpdated => 0,
context => q|An error indicating that an invalid zipcode has been entered.|
},
'invalid email' => {
message => q|You have to enter a valid email address.|,
lastUpdated => 0,
context => q|An error indicating that an invalid email address has been entered.|
},
'no description' => {
message => q|No description|,
lastUpdated => 0,
context => q|The default description of purchase of users.|
},
'cash' => {
message => q|Cash|,
lastUpdated => 0,
context => q|Option to use physical money as a form of payment.|
},
'check' => {
message => q|Check|,
lastUpdated => 0,
context => q|Option to use a check as a form of payment.|
},
'other' => {
message => q|Other|,
lastUpdated => 0,
context => q|Option to use a something aside from cash or check as a payment.|
},
'payment method' => {
message => q|Payment Method|,
lastUpdated => 0,
context => q|Label for selecting how to pay for this purchase.|
},
'complete transaction' => {
message => q|Complete Transaction on Submit?|,
lastUpdated => 0,
},
'complete transaction description' => {
message => q|When set to 'yes', the transaction is completed when the user submits payment details. When set to 'no', the transaction is set to pending and must be manually set to complete. This may be useful if you wish to allow site visitors to select the Cash Payment method, but would like to wait for payment to clear before completing the transaction.|,
lastUpdated => 0,
},
};
1;

View file

@ -1,266 +0,0 @@
package WebGUI::i18n::English::CommercePaymentITransact;
use strict;
our $I18N = {
'label' => {
message => q|Credit Card|,
lastUpdated => 0,
context => q|Default ITransact payment gateway label|
},
'phone' => {
message => q|Telephone Number|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'country' => {
message => q|Country|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'firstName' => {
message => q|First name|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'lastName' => {
message => q|Last name|,
lastUpdated => 0,
context => q|Form label in the checkout form of the iTransact module.|
},
'address' => {
message => q|Address|,
lastUpdated => 1101772170,
context => q|Form label in the checkout form of the iTransact module.|
},
'city' => {
message => q|City|,
lastUpdated => 1101772171,
context => q|Form label in the checkout form of the iTransact module.|
},
'state' => {
message => q|State|,
lastUpdated => 1101772173,
context => q|Form label in the checkout form of the iTransact module.|
},
'zipcode' => {
message => q|Zipcode|,
lastUpdated => 1101772174,
context => q|Form label in the checkout form of the iTransact module.|
},
'email' => {
message => q|Email|,
lastUpdated => 1101772176,
context => q|Form label in the checkout form of the iTransact module.|
},
'cardNumber' => {
message => q|Credit card number|,
lastUpdated => 1101772177,
context => q|Form label in the checkout form of the iTransact module.|
},
'expiration date' => {
message => q|Expiration date|,
lastUpdated => 1101772180,
context => q|Form label in the checkout form of the iTransact module.|
},
'cvv2' => {
message => q|Verification number (ie. CVV2)|,
lastUpdated => 1101772182,
context => q|Form label in the checkout form of the iTransact module.|
},
'vendorId' => {
message => q|Username (Vendor ID)|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'use cvv2' => {
message => q|Use CVV2|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'emailMessage' => {
message => q|Email message|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'password' => {
message => q|Password|,
lastUpdated => 0,
context => q|Form label in the configuration form of the iTransact module.|
},
'module name' => {
message => q|iTransact (CDG Commerce)|,
lastUpdated => 0,
context => q|The displayed name of the payment module.|
},
'invalid firstName' => {
message => q|You have to enter a valid first name.|,
lastUpdated => 0,
context => q|An error indicating that an invalid first name has been entered.|
},
'invalid lastName' => {
message => q|You have to enter a valid last name.|,
lastUpdated => 0,
context => q|An error indicating that an invalid last name has been entered.|
},
'invalid address' => {
message => q|You have to enter a valid address.|,
lastUpdated => 0,
context => q|An error indicating that an invalid street has been entered.|
},
'invalid city' => {
message => q|You have to enter a valid city.|,
lastUpdated => 0,
context => q|An error indicating that an invalid city has been entered.|
},
'invalid zip' => {
message => q|You have to enter a valid zipcode.|,
lastUpdated => 0,
context => q|An error indicating that an invalid zipcode has been entered.|
},
'invalid email' => {
message => q|You have to enter a valid email address.|,
lastUpdated => 0,
context => q|An error indicating that an invalid email address has been entered.|
},
'invalid card number' => {
message => q|You have to enter a valid credit card number.|,
lastUpdated => 0,
context => q|An error indicating that an invalid credit card number has been entered.|
},
'invalid cvv2' => {
message => q|You have to enter a valid card security code (ie. cvv2).|,
lastUpdated => 0,
context => q|An error indicating that an invalid card security code has been entered.|
},
'invalid expiration date' => {
message => q|You have to enter a valid expiration date.|,
lastUpdated => 0,
context => q|An error indicating that an invalid expiration date has been entered.|
},
'expired expiration date' => {
message => q|The expiration date on your card has already passed.|,
lastUpdated => 0,
context => q|An error indicating that an an expired card was used.|
},
'no description' => {
message => q|No description|,
lastUpdated => 0,
context => q|The default description of purchase of users.|
},
'show terminal' => {
message => q|Click here to use your virtual terminal.|,
lastUpdated => 0,
context => q|The label of the link that points to the virtual terminal login.|
},
'extra info' => {
message => q|Setting up your ecommerce site is as easy as these few steps:
<p>
<b>Step 1: Get A Merchant Account</b><br />
<a target="_blank" href="https://secure.cdgcommerce.com/onlineapp/onlineapp.php?agentid=309&appcode=PROMO2005">Register for a merchant account now to get started processing online transactions.</a>
</p>
<p>
<b>Step 2: Set Up Your Merchant Account Info</b><br />
See the information toward the bottom of this page to set up your merchant account info.
</p>
<p>
<b>Step 3: Get An SSL Certificate</b><br />
<a target="_blank" href="http://www.completessl.com/plainblack.php">Get an SSL Certificate from CompleteSSL.</a>
</p>
<p>
<b>Step 4: Install The Certificate</b><br />
Contact your hosting provider to install your certificate or install it yourself.
</p>
<p>
<b>Step 5: Enable IP Address</b><br />
For added security the system will not allow just anyone to post requests to the merchant account. We have to tell the merchant account what the IP address of our site (or sites) is. To do this go to your virtual terminal and log in. Go to Account Settings &gt; Fraud Control &gt; and click on the "IP Filter Settings" link. There enter the IP address of your server Set the status to Active and set the module to XML, then hit go. Contact your system administrator for your server IP address. You'll also need to send an email to support@cdgcommerce.com to let them know that you wish to enable the XML API.
</p>
<p>
<b>Step 6: Enable The Commerce System</b><br />
Set the enabled field to "Yes" in your WebGUI commerce settings.
</p>
<p>
<b>Step 7: Optionally Accept American Express, Discover, and Diners Club</b><br />
By default you'll only be able to accept MasterCard and Visa. If you want to accept others you'll need to follow these steps:
<ol>
<li>Call the credit card vendor to apply:
<ul>
<li>American Express: (800) 528-5200</li>
<li>Discover: (800) 347-2000</li>
<li>Diners Club: (800) 525-7376</li>
</ul>
</li>
<li>Send the account numbers that you get from those companies to merchantchanges@cdgcommerce.com to get them registered with your merchant account.</li>
<li>Go to your virtual terminal and enable these cards under your Account settings.</li>
</ol>
</p>
<p>
<b>Step 8: Optionally Accept eChecks</b><br />
<a target="_blank" href="http://cdgcommerce.com/forms/CDGcommerce_ACH_Processing.pdf">After you have your iTransact/CDGCommerce merchant account set up, you can optionally add the ability to accept eChecks by filling out this application.</a>
</p>
<hr />
This plugin expects that you set up the following recipe's in your CDG account. Be very careful to enter the recipe names exactly as given below.<br />
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="right"><b>weekly</b></td>
<td> -> </td>
<td align="left">7 days</td>
</tr>
<tr>
<td align="right"><b>biweekly</b></td>
<td> -> </td>
<td align="left">14 days</td>
</tr>
<tr>
<td align="right"><b>fourweekly</b></td>
<td> -> </td>
<td align="left">28 days</td>
</tr>
<tr>
<td align="right"><b>monthly</b></td>
<td> -> </td>
<td align="left">30 days</td>
</tr>
<tr>
<td align="right"><b>quarterly</b></td>
<td> -> </td>
<td align="left">91 days</td>
</tr>
<tr>
<td align="right"><b>halfyearly</b></td>
<td> -> </td>
<td align="left">182 days</td>
</tr>
<tr>
<td align="right"><b>yearly</b></td>
<td> -> </td>
<td align="left">365 days</td>
</tr>
</table><br />
Please note that some of these recipe's are only roughly correct. They don't 'fit' exactly in a whole year. Below the affected recipe's are given together with their difference on a year's basis. <br />
<ul>
<li><b>monthly</b> (differs 5 days each year, 6 days each leap year)</li>
<li><b>quarterly</b> (differs 1 day each year, 2 days each leap year)</li>
<li><b>halfyearly</b> (differs 1 day each year, 2 days each leap year)</li>
<li><b>yearly</b> (differs 1 day each leap year)</li>
</ul><br />
Also set the 'RECURRING POST-BACK URL' field in the Account Settings part of the virtual terminal to:|,
lastUpdated => 1189004971,
context => q|An informational message that's shown in the configuration form of this plugin.|
},
};
1;

View file

@ -1,19 +0,0 @@
package WebGUI::i18n::English::CommerceShippingByPrice;
use strict;
our $I18N = {
'percentage of price' => {
message => q|Percentage of price|,
lastUpdated => 0,
context => q|The label of the percentage of price form element.|
},
'title' => {
message => q|By Price|,
lastUpdated => 0,
context => q|The title of the by price module.|
},
};
1;

View file

@ -1,19 +0,0 @@
package WebGUI::i18n::English::CommerceShippingByWeight;
use strict;
our $I18N = {
'title' => {
message => q|By Weight|,
lastUpdated => 0,
context => q|The title of the by weight shipping plugin.|
},
'price per weight' => {
message => q|Price per weight|,
lastUpdated => 0,
context => q|The label of the price per weight form element.|
},
};
1;

View file

@ -1,19 +0,0 @@
package WebGUI::i18n::English::CommerceShippingPerTransaction;
use strict;
our $I18N = {
'title' => {
message => q|Per transaction|,
lastUpdated => 0,
context => q|The title of the pertransaction plugin.|
},
'price' => {
message => q|Price|,
lastUpdated => 0,
context => q|The label of the price form element.|
},
};
1;

View file

@ -3731,15 +3731,6 @@ LongTruncOk=1</p>
},
'settings groupIdAdminCommerce label' => {
message => q{Commerce},
lastUpdated => 0,
},
'settings groupIdAdminCommerce hoverHelp' => {
message => q{Group to manage Commerce settings.},
lastUpdated => 0,
},
'settings groupIdAdminCron label' => {
message => q{Cron},
@ -3821,16 +3812,6 @@ LongTruncOk=1</p>
},
'settings groupIdAdminProductManager label' => {
message => q{Products},
lastUpdated => 0,
},
'settings groupIdAdminProductManager hoverHelp' => {
message => q{Group to manage products},
lastUpdated => 0,
},
'settings groupIdAdminProfileSettings label' => {
message => q{User Profiling},
lastUpdated => 0,
@ -3870,27 +3851,6 @@ LongTruncOk=1</p>
lastUpdated => 0,
},
'settings groupIdAdminSubscription label' => {
message => q{Subscriptions},
lastUpdated => 0,
},
'settings groupIdAdminSubscription hoverHelp' => {
message => q{Group to manage subscriptions.},
lastUpdated => 0,
},
'settings groupIdAdminTransactionLog label' => {
message => q{Transactions},
lastUpdated => 0,
},
'settings groupIdAdminTransactionLog hoverHelp' => {
message => q{Group to manage transactions.},
lastUpdated => 0,
},
'settings groupIdAdminUser label' => {
message => q{Users},
lastUpdated => 0,

View file

@ -1,13 +0,0 @@
package WebGUI::i18n::English::Workflow_Activity_CacheEMSPrereqs;
use strict;
our $I18N = {
'activityName' => {
message => q|Cache EMS Prerequisites|,
context => q|The name of this workflow activity.|,
lastUpdated => 0,
},
};
1;

View file

@ -1,14 +0,0 @@
package WebGUI::i18n::English::Workflow_Activity_ProcessRecurringPayments;
use strict;
our $I18N = {
'activityName' => {
message => q|Process Recurring Payments|,
context => q|The name of this workflow activity.|,
lastUpdated => 0,
},
};
1;