[guadec-web-regcfp/develop] Do not send to paypal with regfee=0
- From: Patrick Uiterwijk <puiterwijk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web-regcfp/develop] Do not send to paypal with regfee=0
- Date: Wed, 24 Jun 2015 12:46:42 +0000 (UTC)
commit 7f73fbb6aefea70ece5e9df38f8b8077e8f18ece
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date: Wed Jun 24 14:46:38 2015 +0200
Do not send to paypal with regfee=0
routes/registration.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/routes/registration.js b/routes/registration.js
index ed3c07b..092fd49 100644
--- a/routes/registration.js
+++ b/routes/registration.js
@@ -166,6 +166,9 @@ router.all('/pay/do', utils.require_user);
router.all('/pay/do', utils.require_permission('registration/pay_extra'));
router.post('/pay/do', function(req, res, next) {
var method = req.body.method;
+ if(req.body.regfee == 0 || req.body.regfee == null) {
+ method = 'onsite';
+ }
if(method == 'onsite') {
var info = {
amount: req.body.regfee,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]