Changeset 981081
- Timestamp:
- 09/05/2014 04:14:15 AM (12 years ago)
- Location:
- wp-balanced-payments/trunk
- Files:
-
- 4 edited
-
assets/js/balanced-payments.js (modified) (2 diffs)
-
classes/class-balanced-payments.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-balanced-payments.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-balanced-payments/trunk/assets/js/balanced-payments.js
r973766 r981081 2 2 balanced.init( balancedPayments.URI ); 3 3 4 card = new Skeuocard( jQuery( "#cc-form .credit-card-input" ) ); 4 if('undefined' !== typeof window['Skeuocard']) { 5 card = new Skeuocard( jQuery( "#cc-form .credit-card-input" ) ); 6 } 5 7 6 8 jQuery('#cc-form #cc_submit').click(function (e) { … … 22 24 number: jQuery('#cc-form #cc_number').val(), 23 25 expiration_month: jQuery('#cc-form #cc_exp_month').val(), 24 expiration_year: jQuery('#cc-form #cc_exp_year').val(),26 expiration_year: '20' + jQuery('#cc-form #cc_exp_year').val(), 25 27 cvv: jQuery('#cc-form #cc_cvc').val(), 26 28 -
wp-balanced-payments/trunk/classes/class-balanced-payments.php
r973766 r981081 332 332 public function shortcode( $atts ) { 333 333 $default = isset( $atts['default'] ) && ! empty( $atts['default'] ) ? $atts['default'] : get_balanced_payments_setting( 'default-amount' ); 334 $default = isset( $_GET['amount'] ) ? floatval( $_GET['amount'] ) : $default; 334 335 335 336 $this->enqueue_scripts(); … … 352 353 <form id="cc-form" action="<?php echo $this->get_post_url(); ?>" method="POST"> 353 354 <div class="credit-card-input no-js"> 354 <p class="no-support-warning"><?php _e( 'Javascript seems to be disabled, please use the form below for your credit card payment.', 'balanced-payments' ); ?></p>355 355 <label for="cc_type"><?php _e( 'Card Type', 'balanced-payments' ); ?></label> 356 356 <select name="cc_type"> -
wp-balanced-payments/trunk/readme.txt
r973766 r981081 5 5 Requires at least: 3.0 6 6 Tested up to: 4.0 7 Stable tag: 2. 0.07 Stable tag: 2.1.0 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 24 24 25 25 == Changelog == 26 27 = 2.1.0 - 09/04/2014 = 28 * Add ability to pass default amount through query arg 29 * Fix JS errors when Skeuocard is not active 30 * Fix JS error causing payments to declined because the BP API requires four digit expiration years not two. 31 * Fix "Javascript disabled" message appearing in Basic CC forms. 26 32 27 33 = 2.0.0 - 08/26/2014 = -
wp-balanced-payments/trunk/wp-balanced-payments.php
r973766 r981081 4 4 * Plugin URI: https://pmgarman.me/ 5 5 * Description: Add simple credit card form to your site with a short code to take payments using Balanced Payments. 6 * Version: 2. 0.06 * Version: 2.1.0 7 7 * Author: Patrick Garman 8 8 * Author URI: https://pmgarman.me
Note: See TracChangeset
for help on using the changeset viewer.