Changeset - c1fab4fcc263
[Not reviewed]
0 1 0
Christopher Neugebauer - 5 years ago 2016-10-03 23:42:03
chrisjrn@gmail.com
Fixes payment form behaviour.
1 file changed with 2 insertions and 4 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/registrasion/stripe/credit_card_payment.html
Show inline comments
...
 
@@ -52,15 +52,13 @@
 

	
 
        // Insert the token ID into the form so it gets submitted to the server:
 
        $form = $form.append($('<input type="hidden" name="stripe_token" />').val(token));
 

	
 
        // Submit the form:
 

	
 
        $submit.prop('disabled', false);
 
        $submit.click();
 
        $submit.prop('disabled', true);
 
        $form.get(0).submit();
 
        $form.append($('<p>').text("Processing your payment. Please do not refresh."));
 
      }
 
    };
 
  </script>
 

	
 
{% endblock %}
...
 
@@ -82,9 +80,9 @@
 
      <a class="close" data-dismiss="alert">×</a>
 
      <span id="payment-errors"></span>
 
    </div>
 

	
 
    {% csrf_token %}
 
    {{form|bootstrap}}
 
    <input id="submit" class="btn btn-primary" type="submit" value="Pay {{ invoice.balance_due }}" />
 
    <input id="pay" class="btn btn-primary" type="submit" value="Pay {{ invoice.balance_due }}" />
 
  </form>
 
{% endblock %}
0 comments (0 inline, 0 general)