[git] gnupg-doc - branch, preview, updated. d13c086489868ce8de6e17afc79619549949fc63
by Werner Koch
cvs at cvs.gnupg.org
Thu May 11 12:08:47 CEST 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GnuPG website and other docs".
The branch, preview has been updated
via d13c086489868ce8de6e17afc79619549949fc63 (commit)
from 5a9e5bfdff6d09805851d133635a5d856fbe3ae1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d13c086489868ce8de6e17afc79619549949fc63
Author: Werner Koch <wk at gnupg.org>
Date: Thu May 11 12:05:32 2017 +0200
cgi: Final fixes to actually make recurring work.
Some fine tuning etc wiull still be needed, but as it is right now
Donations do work. Test with a card number of
4242424242424242
using any valid exiration date anc CVC.
diff --git a/cgi/procdonate.cgi b/cgi/procdonate.cgi
index 9a54627..2a768b2 100755
--- a/cgi/procdonate.cgi
+++ b/cgi/procdonate.cgi
@@ -26,7 +26,7 @@ my $stripepubkey = $config{stripepubkey};
my $socket_name = $config{payprocd_socket};
my $error_marker = '<span style="color: red;">* error</span>';
-# The form variabales are accessed via Q.
+# The form variables are accessed via Q.
my $q = new CGI;
# This is a multi-purpose CGI. The mode decides what to do.
@@ -504,7 +504,7 @@ sub complete_stripe_checkout ()
"GnuPG donation by " . $data{"Name"} . " <" . $data{"Mail"} . ">";
$stripe{"Stmt-Desc"} = "GnuPG donation";
$stripe{"Email"} = $q->param("stripeEmail");
- $stripe{"Recur"} = $q->param("Recur");
+ $stripe{"Recur"} = $data{"Recur"};
$stripe{"Meta[name]"} = $data{"Name"} unless $data{"Name"} eq 'Anonymous';
if ($data{"Mail"} ne $q->param("stripeEmail")) {
$stripe{"Meta[mail]"} = $data{"Mail"};
diff --git a/web/donate/donate.org b/web/donate/donate.org
index 754e9e5..99657a2 100644
--- a/web/donate/donate.org
+++ b/web/donate/donate.org
@@ -119,7 +119,7 @@
<div class="form-group">
<label for="inputType" class="col-md-2 control-label">Recurring</label>
<div class="col-md-2">
- <select class="form-control">
+ <select class="form-control" name="recur">
<option value="0"
selected="selected"><!--RECUR_NONE-->Just once</option>
<option value="12" ><!--RECUR_MONTH-->Monthly</option>
-----------------------------------------------------------------------
Summary of changes:
cgi/procdonate.cgi | 4 ++--
web/donate/donate.org | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
The GnuPG website and other docs
http://git.gnupg.org
More information about the Gnupg-commits
mailing list