Skip to content

Commit 99344e3

Browse files
committed
Fix form submit.
1 parent 82a1386 commit 99344e3

File tree

4 files changed

+6
-43
lines changed

4 files changed

+6
-43
lines changed

README.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ You can also follow us on Twitter! **[@paystack](http://twitter.com/paystack)**
7878

7979

8080
== Changelog ==
81+
= 1.0.4 =
82+
* Added Recurring Payments and new design.
8183
= 1.0.3 =
8284
* Invoice and Receipt Emails, with ability to disable them.
8385
= 1.0.2 =

includes/paystack-invoice.php

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +0,0 @@
1-
2-
<title>Paystack Invoice</title>
3-
<?php
4-
define('WP_USE_THEMES', true);
5-
6-
/** Loads the WordPress Environment and Template */
7-
require(get_template_directory() . '/wp-blog-header.php' );
8-
//call the wp head so you can get most of your wordpress
9-
get_header();
10-
?>
11-
12-
<?php
13-
echo @$_GET['code'];
14-
15-
?>
16-
<h1>Here's my plugin front-end page</h1>
17-
<h2>You can put anything you want in this php file.</h2>
18-
<h2>You can put anything you want in this php file.</h2>
19-
<h2>You can put anything you want in this php file.</h2>
20-
<h2>You can put anything you want in this php file.</h2>
21-
<h2>You can put anything you want in this php file.</h2>
22-
<h2>You can put anything you want in this php file.</h2>
23-
<h2>You can put anything you want in this php file.</h2>
24-
<h2>You can put anything you want in this php file.</h2>
25-
<h2>You can put anything you want in this php file.</h2>
26-
<h2>You can put anything you want in this php file.</h2>
27-
<h2>You can put anything you want in this php file.</h2>
28-
<h2>You can put anything you want in this php file.</h2>
29-
<h2>You can put anything you want in this php file.</h2>
30-
<h2>You can put anything you want in this php file.</h2>
31-
<h2>You can put anything you want in this php file.</h2>
32-
<h2>You can put anything you want in this php file.</h2>
33-
<h2>You can put anything you want in this php file.</h2>
34-
<h2>You can put anything you want in this php file.</h2>
35-
<h2>You can put anything you want in this php file.</h2>
36-
<h2>You can put anything you want in this php file.</h2>
37-
<?php
38-
//call the wp foooter
39-
get_footer();
40-
?>

public/class-paystack-forms-public.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,9 @@ function kkd_pff_paystack_form_shortcode($atts) {
658658

659659
// echo '</form>';
660660
echo '<div class="span12 unit">
661+
<small><span style="color: red;">*</span> are compulsory</small><br />
661662
<img src="'. plugins_url( '../images/[email protected]' , __FILE__ ) .'" alt="cardlogos" class="paystack-cardlogos size-full wp-image-1096" />
663+
662664
<button type="reset" class="secondary-btn">Reset</button>
663665
<button type="submit" class="primary-btn">'.$paybtn.'</button>
664666
</div>';

public/js/paystack-forms-public.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
$('.paystack-form').on('submit', function(e) {
2424
var stop = false;
25-
$(this).find("input, textarea").each(function() {
25+
$(this).find("input,select, textarea").each(function() {
2626
$(this).css({ "border-color":"#d1d1d1" });
2727
});
2828
var email = $(this).find("#pf-email").val();
@@ -42,9 +42,8 @@
4242

4343
});
4444
if (stop) {
45-
return false;
46-
alert('sc');
4745
$('html,body').animate({ scrollTop: $('.paystack-form').offset().top - 110 }, 500);
46+
return false;
4847

4948
}
5049

0 commit comments

Comments
 (0)