Plugin Directory

Changeset 981081


Ignore:
Timestamp:
09/05/2014 04:14:15 AM (12 years ago)
Author:
patrickgarman
Message:

2.1.0 - 09/04/2014

  • Add ability to pass default amount through query arg
  • Fix JS errors when Skeuocard is not active
  • Fix JS error causing payments to declined because the BP API requires four digit expiration years not two.
  • Fix "Javascript disabled" message appearing in Basic CC forms.
Location:
wp-balanced-payments/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-balanced-payments/trunk/assets/js/balanced-payments.js

    r973766 r981081  
    22    balanced.init( balancedPayments.URI );
    33
    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    }
    57
    68    jQuery('#cc-form #cc_submit').click(function (e) {
     
    2224            number: jQuery('#cc-form #cc_number').val(),
    2325            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(),
    2527            cvv: jQuery('#cc-form #cc_cvc').val(),
    2628
  • wp-balanced-payments/trunk/classes/class-balanced-payments.php

    r973766 r981081  
    332332    public function shortcode( $atts ) {
    333333        $default = isset( $atts['default'] ) && ! empty( $atts['default'] ) ? $atts['default'] : get_balanced_payments_setting( 'default-amount' );
     334        $default = isset( $_GET['amount'] ) ? floatval( $_GET['amount'] ) : $default;
    334335
    335336        $this->enqueue_scripts();
     
    352353        <form id="cc-form" action="<?php echo $this->get_post_url(); ?>" method="POST">
    353354            <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>
    355355                <label for="cc_type"><?php _e( 'Card Type', 'balanced-payments' ); ?></label>
    356356                <select name="cc_type">
  • wp-balanced-payments/trunk/readme.txt

    r973766 r981081  
    55Requires at least: 3.0
    66Tested up to: 4.0
    7 Stable tag: 2.0.0
     7Stable tag: 2.1.0
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2424
    2525== 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.
    2632
    2733= 2.0.0 - 08/26/2014 =
  • wp-balanced-payments/trunk/wp-balanced-payments.php

    r973766 r981081  
    44 * Plugin URI: https://pmgarman.me/
    55 * Description: Add simple credit card form to your site with a short code to take payments using Balanced Payments.
    6  * Version: 2.0.0
     6 * Version: 2.1.0
    77 * Author: Patrick Garman
    88 * Author URI: https://pmgarman.me
Note: See TracChangeset for help on using the changeset viewer.