From: skodak Date: Tue, 14 Nov 2006 09:26:22 +0000 (+0000) Subject: MDL-7838 Fixed wrong Paypal spelling, should be PayPal X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5599d142f6bbb04905e683377470bee20989d65a;p=moodle.git MDL-7838 Fixed wrong Paypal spelling, should be PayPal MDL-7539 PayPal pay button XHTML compliance MDL-3137 PayPal acceptace logo displayed on enrollment page --- diff --git a/enrol/paypal/db/install.xml b/enrol/paypal/db/install.xml index 2d325371d9..b4c0c0d332 100644 --- a/enrol/paypal/db/install.xml +++ b/enrol/paypal/db/install.xml @@ -1,7 +1,7 @@ - +
diff --git a/enrol/paypal/db/mysql.sql b/enrol/paypal/db/mysql.sql index 7ffe94e19a..b43cb7522d 100644 --- a/enrol/paypal/db/mysql.sql +++ b/enrol/paypal/db/mysql.sql @@ -20,4 +20,4 @@ CREATE TABLE `prefix_enrol_paypal` ( `payment_type` varchar(30) NOT NULL default '', `timeupdated` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id`) -) TYPE=MyISAM COMMENT='Holds all known information about Paypal transactions' ; +) TYPE=MyISAM COMMENT='Holds all known information about PayPal transactions' ; diff --git a/enrol/paypal/enrol.html b/enrol/paypal/enrol.html index 30a3f0b311..f049be41a7 100644 --- a/enrol/paypal/enrol.html +++ b/enrol/paypal/enrol.html @@ -2,41 +2,42 @@

enrol_currency $cost"; ?>

+

PayPal

usepaypalsandbox) ? 'https://www.paypal.com/cgi-bin/webscr' : 'https://www.sandbox.paypal.com/cgi-bin/webscr'; ?>
- - - - - -"> - -id-$course->id" ?>"> - - - - - - - -wwwroot/enrol/paypal/ipn.php"?>"> -wwwroot/enrol/paypal/return.php?id=$course->id" ?>"> - - -"> - - - - - - - - -"> + + + + + +" /> + +id-$course->id" ?>" /> + + + + + + + +wwwroot/enrol/paypal/ipn.php"?>" /> +wwwroot/enrol/paypal/return.php?id=$course->id" ?>" /> + + +" /> + + + + + + + + +" /> diff --git a/enrol/paypal/enrol.php b/enrol/paypal/enrol.php index ae596231fa..fc13238d07 100644 --- a/enrol/paypal/enrol.php +++ b/enrol/paypal/enrol.php @@ -1,5 +1,5 @@ dirroot/enrol/enrol.class.php"); diff --git a/enrol/paypal/ipn.php b/enrol/paypal/ipn.php index 495cfeeb9c..4aefe4c777 100644 --- a/enrol/paypal/ipn.php +++ b/enrol/paypal/ipn.php @@ -1,11 +1,11 @@ timeaccess course array * @@ -21,7 +21,7 @@ error("Sorry, you can not use the script that way."); } -/// Read all the data from Paypal and get it ready for later +/// Read all the data from PayPal and get it ready for later $req = 'cmd=_notify-validate'; @@ -64,7 +64,7 @@ $paypaladdr = empty($CFG->usepaypalsandbox) ? 'www.paypal.com' : 'www.sandbox.paypal.com'; $fp = fsockopen ($paypaladdr, 80, $errno, $errstr, 30); - if (!$fp) { /// Could not open a socket to Paypal - FAIL + if (!$fp) { /// Could not open a socket to PayPal - FAIL echo "

Error: could not access paypal.com

"; email_paypal_error_to_admin("Could not access paypal.com to verify payment", $data); die; @@ -96,7 +96,7 @@ // Email user to let them know. Email admin. if ($data->payment_status == "Pending" and $data->pending_reason != "echeck") { - email_to_user($user, get_admin(), "Moodle: Paypal payment", "Your Paypal payment is pending."); + email_to_user($user, get_admin(), "Moodle: PayPal payment", "Your PayPal payment is pending."); email_paypal_error_to_admin("Payment pending", $data); die; } diff --git a/lang/en_utf8/enrol_paypal.php b/lang/en_utf8/enrol_paypal.php index e254607ae7..7005b80e9d 100644 --- a/lang/en_utf8/enrol_paypal.php +++ b/lang/en_utf8/enrol_paypal.php @@ -2,10 +2,10 @@ // enrol_paypal.php - created with Moodle 1.7 beta + (2006101003) -$string['business'] = 'The email address of your business Paypal account'; +$string['business'] = 'The email address of your business PayPal account'; $string['costorkey'] = 'Please choose one of the following methods of enrolment.'; -$string['description'] = 'The Paypal module allows you to set up paid courses. If the cost for any course is zero, then students are not asked to pay for entry. There is a site-wide cost that you set here as a default for the whole site and then a course setting that you can set for each course individually. The course cost overrides the site cost.'; -$string['enrolname'] = 'Paypal'; -$string['sendpaymentbutton'] = 'Send payment via Paypal'; +$string['description'] = 'The PayPal module allows you to set up paid courses. If the cost for any course is zero, then students are not asked to pay for entry. There is a site-wide cost that you set here as a default for the whole site and then a course setting that you can set for each course individually. The course cost overrides the site cost.'; +$string['enrolname'] = 'PayPal'; +$string['sendpaymentbutton'] = 'Send payment via PayPal'; ?> diff --git a/lang/en_utf8/help/cost.html b/lang/en_utf8/help/cost.html index 317563c98d..32e6fae32f 100644 --- a/lang/en_utf8/help/cost.html +++ b/lang/en_utf8/help/cost.html @@ -1,7 +1,7 @@

Course Cost

If the site has been configured to use an enrolment method - that requires payment (such as the Paypal module), then + that requires payment (such as the PayPal module), then you can enter a course cost here with no symbol (the currency is set by the enrolment plugin). For example, 19.95.